package
0.0.0-20240912065615-60fd97213283
Repository: https://github.com/go-leo/gox.git
Documentation: pkg.go.dev

# Functions

BytesToString converts byte slice to string without a memory allocation.
StringToBytes converts string to byte slice without a memory allocation.
ToBool casts an interface to a bool type.
ToBoolE casts an interface to a bool type.
ToBoolSlice casts an interface to a []bool type.
ToBoolSliceE casts an interface to a []bool type.
ToDuration casts an interface to a time.Duration type.
ToDurationE casts an interface to a time.Duration type.
ToDurationSlice casts an interface to a []time.Duration type.
ToDurationSliceE casts an interface to a []time.Duration type.
ToFloat converts an interface to a floating-point type.
ToFloat32 casts an interface to a float32 type.
ToFloat32E casts an interface to a float32 type.
ToFloat32Slice casts an interface to a float32 slice type.
ToFloat32SliceE casts an interface to a float32 type.
ToFloat64 casts an interface to a float64 type.
ToFloat64E casts an interface to a float64 type.
ToFloat64Slice casts an interface to a float64 slice type.
ToFloat64SliceE casts an interface to a float64 type.
ToFloatE converts an interface to a floating-point type.
ToFloatSlice converts an interface to a floating-point slice type.
ToFloatSliceE converts an interface to a floating-point slice type.
ToInt converts an interface to an int type.
ToInt16 converts an interface to an int16 type.
ToInt16E converts an interface to an int16 type.
ToInt16Slice converts an interface to an int16 type.
ToInt16SliceE converts an interface to an []int16 type.
ToInt32 converts an interface to an int32 type.
ToInt32E converts an interface to an int32 type.
ToInt32Slice casts an interface to a []int32 type.
ToInt32SliceE casts an interface to a []int32 type.
ToInt64 converts an interface to an int64 type.
ToInt64E converts an interface to an int64 type.
ToInt64Slice casts an interface to a []int64 type.
ToInt64SliceE casts an interface to a []int64 type.
ToInt8 converts an interface to an int8 type.
ToInt8E converts an interface to an int8 type.
ToInt8Slice converts an interface to an int8 type.
ToInt8SliceE converts an interface to an []int8 type.
ToIntE converts an interface to an int type.
ToIntSlice casts an interface to a []int type.
ToIntSliceE casts an interface to a []int type.
ToSigned converts an interface to a signed integer type.
ToSignedE converts an interface to a signed integer type.
ToSignedSlice converts an interface to a signed integer slice type.
ToSignedSliceE converts an interface to a signed integer slice type.
ToSlice casts an interface to a []any type.
ToSliceE casts an interface to a []any type.
ToString casts an interface to a string type.
ToStringE casts an interface to a string type.
ToStringMap casts an interface to a map[string]any type.
ToStringMapBool casts an interface to a map[string]bool type.
ToStringMapBoolE casts an interface to a map[string]bool type.
ToStringMapE casts an interface to a map[string]any type.
ToStringMapInt casts an interface to a map[string]int type.
ToStringMapInt64 casts an interface to a map[string]int64 type.
ToStringMapInt64E casts an interface to a map[string]int64{} type.
ToStringMapIntE casts an interface to a map[string]int{} type.
ToStringMapString casts an interface to a map[string]string type.
ToStringMapStringE casts an interface to a map[string]string type.
ToStringMapStringSlice casts an interface to a map[string][]string type.
ToStringMapStringSliceE casts an interface to a map[string][]string type.
ToStringSlice casts an interface to a []string type.
ToStringSliceE casts an interface to a []string type.
ToText casts an interface to a string type.
ToTextE casts an interface to a string type.
ToTextSlice casts an interface to a []string type.
ToTextSliceE casts an interface to a []string type.
ToTime casts an interface to a time.Time type.
ToTimeE casts an interface to a time.Time type.
ToTimeInLocation casts an empty interface to time.Time,.
ToTimeInLocationE casts an empty interface to time.Time, interpreting inputs without a timezone to be in the given location, or the local timezone if nil.
ToUint converts an interface to a uint type.
ToUint16 converts an interface to a uint16 type.
ToUint16E converts an interface to a uint16 type.
ToUint16Slice converts an interface to a []uint16 type.
ToUint16SliceE converts an interface to a uint16 type.
ToUint32 converts an interface to a uint32 type.
ToUint32E converts an interface to a uint32 type.
ToUint32Slice casts an interface to a []uint32 type.
ToUint32SliceE casts an interface to a []int32 type.
ToUint64 converts an interface to a uint64 type.
ToUint64E converts an interface to a uint64 type.
ToUint64Slice casts an interface to a []uint64 type.
ToUint64SliceE casts an interface to a []uint64 type.
ToUint8 converts an interface to a uint8 type.
ToUint8E converts an interface to a uint type.
ToUint8Slice converts an interface to a []uint8 type.
ToUint8SliceE converts an interface to a uint type.
ToUintE converts an interface to a uint type.
ToUintSlice casts an interface to a []uint type.
ToUintSliceE casts an interface to a []uint type.
ToUnsigned converts an interface to a unsigned integer type.
ToUnsignedE converts an interface to a unsigned integer type.
ToUnsignedSlice converts an interface to an unsigned integer slice type.
ToUnsignedSliceE converts an interface to an unsigned integer slice type.

# Variables

No description provided by the author