Documentation ¶
Index ¶
- func AnyIsNil(v any) bool
- func Bytes2Struct[T any](data []byte) (T, error)
- func BytesArray2Struct[T any](data [][]byte) ([]T, error)
- func GetMapFiledByName(data map[string]interface{}, filed string) (any, bool)
- func GetStructFiledByName[T any](object T, field string) any
- func Struct2Bytes[T any](v T) ([]byte, error)
- func Struct2Map[T any](v T) map[string]any
- func Struct2String(v any) string
- func ValueOfPtr[T string | int | int64 | int32](ptr *T, defaultVal T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2Struct ¶
func BytesArray2Struct ¶
func GetMapFiledByName ¶
func GetStructFiledByName ¶
func Struct2Bytes ¶
func Struct2Map ¶
Struct2Map convert struct to map v must be a pointer
func Struct2String ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.