Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map2Struct ¶
Map2Struct map m to struct by its type
Types ¶
type StructField ¶
type StructField struct { Index int Name string Tag []string Kind reflect.Kind Type reflect.Type Anonymous bool }
StructField 表示一个struct的字段属性
func CachedStructFields ¶
func CachedStructFields(t reflect.Type, tagKey string) []StructField
CachedStructFields caches fields of struct type
Click to show internal directories.
Click to hide internal directories.