Documentation ¶
Index ¶
- func AnyToAny(from interface{}, to interface{}) (err error)
- func ConvertBasicToJsonValue(kind basickind.Kind, val interface{}) (r interface{})
- func ConvertJsonKeyToReflectKind(kind reflect.Kind, val interface{}) (r interface{})
- func InterfaceToJSONKey(ival interface{}) string
- func InterfaceToJSONValue(val interface{}) (r interface{})
- func JustifyByStruct(target map[string]interface{}, st interface{}) (result map[string]interface{}, err error)
- func MapToJsonMap(from, to map[string]interface{})
- func MapToStruct(from map[string]interface{}, to interface{}) (err error)
- func RemoveNil(m map[string]interface{})
- func StructToMap(from interface{}, to map[string]interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBasicToJsonValue ¶
ConvertBasicToJsonValue 把目标值,转换成jsonmap定义的类型
func ConvertJsonKeyToReflectKind ¶
把目标值,转换成jsonmap定义的类型
func InterfaceToJSONKey ¶
func InterfaceToJSONKey(ival interface{}) string
func InterfaceToJSONValue ¶
func InterfaceToJSONValue(val interface{}) (r interface{})
func JustifyByStruct ¶
func JustifyByStruct(target map[string]interface{}, st interface{}) (result map[string]interface{}, err error)
对 目标[target] 按照 结构[st] 的反射信息,校正字段值,输出到result中
func MapToJsonMap ¶
func MapToJsonMap(from, to map[string]interface{})
func MapToStruct ¶
func StructToMap ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.