Documentation ¶
Index ¶
- func BoolPtr(b bool) *bool
- func CastValueTo(v interface{}, vType reflect.Type, ptr bool) interface{}
- func Deref(t reflect.Type) reflect.Type
- func Float32Ptr(f float32) *float32
- func Float64Ptr(f float64) *float64
- func GetBaseType(t reflect.Type, expected reflect.Kind) (reflect.Type, error)
- func GetTimeByUnit(ts int64, unit string) time.Time
- func Int16Ptr(i int16) *int16
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func Int8Ptr(i int8) *int8
- func IntPtr(i int) *int
- func IsStringSliceContains(sl []string, s string) bool
- func IsZeroOfUnderlyingType(x interface{}) bool
- func StringPtr(s string) *string
- func TimestampByUnit(t time.Time, unit string) int64
- func TrimedSpaceStringSlice(s, sep string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastValueTo ¶
CastValueTo -- convert value from string to specific reflect.Type
func GetBaseType ¶
GetBaseType --
func IsStringSliceContains ¶
IsStringSliceContains --
func IsZeroOfUnderlyingType ¶
func IsZeroOfUnderlyingType(x interface{}) bool
IsZeroOfUnderlyingType --
func TrimedSpaceStringSlice ¶
TrimedSpaceStringSlice -- slice string by seperate and trim space
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.