Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶ added in v0.19.0
func Get(input interface{}, fieldName string) interface{}
Get 获取map中的字段,支持嵌套结构获取,例如fieldName.subFieldName.xx 嵌套类型必须是map[string]interface{} 如果字段不存在,返回nil
func Map2Struct ¶
func Map2Struct(input interface{}, output interface{}) error
Map2Struct Decode takes an input structure and uses reflection to translate it to the output structure. output must be a pointer to a map or struct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.