Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToUrlString ¶
func Struct2Map ¶
func Struct2MapNoNil ¶
* 结构体转map @param param 结构体 指针或非针 @param parseType 指定结构字属性 tag 字段 自定义
[example] --------
type Maps struct { Data string `map:"data"` NumberName int `map:"number_name"` }
mp:=Maps{ Data: "111", NumberName: 2, }
a,_:=MapHelper.Struct2Map(mp, "map") fmt.Printf("%+v",a) --------
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.