Documentation ¶
Index ¶
- func Int8Tobool(i int8) bool
- func TimeToInt64(t *time.Time) int64
- func ToBool(i any) bool
- func ToBoolSlice(i any) []bool
- func ToDuration(i any) time.Duration
- func ToDurationSlice(i any) []time.Duration
- func ToFloat32(i any) float32
- func ToFloat64(i any) float64
- func ToInt(i any) int
- func ToInt16(i any) int16
- func ToInt32(i any) int32
- func ToInt64(i any) int64
- func ToInt8(i any) int8
- func ToIntSlice(i any) []int
- func ToSlice(i any) []any
- func ToString(i any) string
- func ToStringMap(i any) map[string]any
- func ToStringMapBool(i any) map[string]bool
- func ToStringMapInt(i any) map[string]int
- func ToStringMapInt64(i any) map[string]int64
- func ToStringMapString(i any) map[string]string
- func ToStringMapStringSlice(i any) map[string][]string
- func ToStringSlice(i any) []string
- func ToTime(i any) time.Time
- func ToUint(i any) uint
- func ToUint16(i any) uint16
- func ToUint32(i any) uint32
- func ToUint64(i any) uint64
- func ToUint8(i any) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int8Tobool ¶
func TimeToInt64 ¶
func ToDuration ¶
ToDuration casts an interface to a time.Duration type.
func ToDurationSlice ¶
ToDurationSlice casts an interface to a []time.Duration type.
func ToStringMap ¶
ToStringMap casts an interface to a map[string]interface{} type.
func ToStringMapBool ¶
ToStringMapBool casts an interface to a map[string]bool type.
func ToStringMapInt ¶
ToStringMapInt casts an interface to a map[string]int type.
func ToStringMapInt64 ¶
ToStringMapInt64 casts an interface to a map[string]int64 type.
func ToStringMapString ¶
ToStringMapString casts an interface to a map[string]string type.
func ToStringMapStringSlice ¶
ToStringMapStringSlice casts an interface to a map[string][]string type.
func ToStringSlice ¶
ToStringSlice casts an interface to a []string type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.