Documentation ¶
Index ¶
- func DirectObj(a any) any
- func IPV42Long(ip string) uint32
- func Long2IPV4(ipInt int64) string
- func Map2Slice[K comparable, V any](mp map[K]V) (ks []K, vs []V)
- func Obj2Stream(obj any) ([]byte, error)
- func StrToNum[...](str string) (ret T, err error)
- func Stream2Obj(stream []byte, obj any) error
- func Struct2Map(a any) (map[string]any, error)
- func ToAny[T any](i any) (T, error)
- func ToBool(i any) (bool, error)
- func ToNum[...](i any) (T, error)
- func ToStr(i any) string
- func TrimFloat[T float32 | float64](num T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map2Slice ¶
func Map2Slice[K comparable, V any](mp map[K]V) (ks []K, vs []V)
func Obj2Stream ¶
func Stream2Obj ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.