Documentation
¶
Index ¶
- func AUintToAInt(au []uint) []int
- func Atou(a string) (uint, error)
- func CamelToSnake(s string) string
- func Capitalize(s string) string
- func DurationInMs(start, end time.Time) int64
- func IntPtr(i int) *int
- func InterfaceToFloat64(i interface{}) (float64, error)
- func IsTypelessEqual(a, b interface{}) bool
- func IsZeroStruct(item interface{}) bool
- func JsonName(f reflect.StructField) string
- func MaxInt(a, b int) int
- func MicroToNano(ms int64) int64
- func MinInt(a, b int) int
- func NanoToMicro(n int64) int64
- func NewInstance(item interface{}) interface{}
- func Round(f float64) float64
- func RoundToDecimal(f float64, decimals int) float64
- func SetValue(v reflect.Value, destType reflect.Type, newVal interface{})
- func SetZeroValue(v reflect.Value)
- func SnakeToCamel(s string) string
- func StringPtr(s string) *string
- func TimePtr(t time.Time) *time.Time
- func UintPtr(u uint) *uint
- func Utoa(u uint) string
- type NullableTimestamp
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AUintToAInt ¶
func CamelToSnake ¶
func Capitalize ¶
func DurationInMs ¶
func InterfaceToFloat64 ¶
func IsTypelessEqual ¶
func IsTypelessEqual(a, b interface{}) bool
func IsZeroStruct ¶
func IsZeroStruct(item interface{}) bool
func JsonName ¶
func JsonName(f reflect.StructField) string
func MicroToNano ¶
func NanoToMicro ¶
func NewInstance ¶
func NewInstance(item interface{}) interface{}
func RoundToDecimal ¶
func SetZeroValue ¶
func SnakeToCamel ¶
SnakeToCamel returns a string converted from snake case to uppercase
Types ¶
type NullableTimestamp ¶
func NewNullableTimestamp ¶
func NewNullableTimestamp(val int64) *NullableTimestamp
func (*NullableTimestamp) SetTimestamp ¶
func (ts *NullableTimestamp) SetTimestamp(val int64)
func (NullableTimestamp) Timestamp ¶
func (ts NullableTimestamp) Timestamp() int64
Click to show internal directories.
Click to hide internal directories.