Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SupportedTags = []string{"prop", "yaml", "json"}
)
Functions ¶
This section is empty.
Types ¶
type StructInfo ¶
type StructInfo struct { FieldsMap map[string]FieldInfo FieldsList []FieldInfo InlineMapIndex int // 如果结构体包含inline map, 这是index。 }
从encoding/json拷贝 StructInfo 结构体的信息
type TagOptions ¶
type TagOptions string
TagOptions is the string following a comma in a struct field's "json" tag, or the empty string. It does not include the leading comma.
func (TagOptions) Contains ¶
func (o TagOptions) Contains(optionName string) bool
Click to show internal directories.
Click to hide internal directories.