Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonToStructForFolder ¶
Types ¶
type JsonToStruct ¶
type JsonToStruct struct { ConfPath string // 配置路径 OutPath string // 输出路径 PkgName string // 输出包名 StructName string // 输出结构体名称 }
func NewJsonToStruct ¶
func NewJsonToStruct(confPath, outPath, pkgName, StructName string) *JsonToStruct
func (*JsonToStruct) AutoOutPath ¶
func (jts *JsonToStruct) AutoOutPath()
func (*JsonToStruct) AutoStructName ¶
func (jts *JsonToStruct) AutoStructName()
如果不指定结构体名称的话自动生成结构体名称
Click to show internal directories.
Click to hide internal directories.