Documentation ¶
Index ¶
- func EncodeTag(tag string) (data map[string]string)
- func Interface2Bool(value interface{}, strict bool) (v bool, ok bool)
- func Interface2Float(value interface{}, strict bool) (v float64, ok bool)
- func Interface2Int(value interface{}, strict bool) (v int64, ok bool)
- func Interface2String(value interface{}, strict bool) (v string, ok bool)
- func Interface2StringWithType(value interface{}, strict bool) (v string, ok bool)
- func Interface2UInt(value interface{}, strict bool) (v uint64, ok bool)
- func Map2Struct(m map[string]interface{}, v interface{}, useTag string) error
- func Map2StructValue(m map[string]interface{}, v reflect.Value, useTag string) error
- func MapString2Struct(mapper map[string]string, obj interface{}, useTag string) (err error)
- func Struct2MapString(v interface{}, useTag string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interface2Bool ¶
func Interface2Float ¶
func Interface2Int ¶
func Interface2String ¶
func Interface2UInt ¶
func Map2Struct ¶
将map将转换为struct,支持组合与嵌套
func Map2StructValue ¶
func MapString2Struct ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.