Documentation
¶
Index ¶
Constants ¶
View Source
const SubCmd = "new"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) HasJSONTag ¶
type Generator ¶
type Generator struct {
*shoot.GeneratorBase
// contains filtered or unexported fields
}
Generator holds the state of the analysis.
func (*Generator) ParseFlags ¶
func (g *Generator) ParseFlags()
type TmplData ¶
type TmplData struct {
*shoot.TmplDataBase
// GoFile string
Imports string
//All = Exported + Unexported
AllList []string
NewMap map[string]string
GetSet bool
GetterList []string
SetterList []string
GetterIfaces []string
SetterIfaces []string
Option bool
DefaultList []string
DefaultValueMap map[string]string
JSON bool
JSONList []string
JSONTagMap map[string]string
JSONGetterList []string
JSONSetterList []string
ExportedList []string
EmbedList []string
Self bool
Short bool
NewParamsList string
NewBody string
TypeParamList string
TypeParamNameList string
TypeMap map[string]string
}
func NewTmplData ¶
Click to show internal directories.
Click to hide internal directories.