Documentation ¶
Index ¶
Constants ¶
View Source
const ( InterfaceTypeDef = "interface" StructTypeDef = "struct" TimeTypeDef = "time.Time" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructField ¶
StructField 结构体字段
func (*StructField) GetJsonTag ¶ added in v1.2.0
func (s *StructField) GetJsonTag() string
func (*StructField) GetTag ¶ added in v1.1.8
func (s *StructField) GetTag(tagName string) string
type StructFlat ¶
type StructFlat struct { Name string Comment string Fields []*StructField }
StructFlat 非嵌套结构体
func StructParser ¶
func StructParser(src string) (structList []*StructFlat, err error)
StructParser golang struct 解析器
Click to show internal directories.
Click to hide internal directories.