Documentation
¶
Index ¶
- func AnyToMap(value interface{}, opts ...StructOption) (map[string]any, error)
- func GetBool(tmp interface{}) bool
- func GetFloat64(tmp interface{}) (float64, error)
- func GetInt(tmp interface{}) (int, error)
- func GetInt64(tmp interface{}) (int64, error)
- func GetString(v interface{}) string
- func GetUint64(tmp interface{}) (uint64, error)
- type FieldNewValuePool
- type MapScanner
- type StructFields
- type StructOption
- type StructScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToMap ¶
func AnyToMap(value interface{}, opts ...StructOption) (map[string]any, error)
将value 转换为map
func GetFloat64 ¶
Types ¶
type FieldNewValuePool ¶
type FieldNewValuePool interface { Get() interface{} Put(interface{}) }
type MapScanner ¶
type StructFields ¶
type StructFields struct { List []field ExactName map[string]*field }
func CachedTypeFields ¶
func CachedTypeFields(t reflect.Type) *StructFields
type StructOption ¶
type StructOption func(*structOptions)
func WithMaxDepth ¶
func WithMaxDepth(maxDepth int) StructOption
type StructScanner ¶
Click to show internal directories.
Click to hide internal directories.