Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnumCmd = cli.Command{ Name: "enum", Usage: "generate var and methods for the iota-enums", Flags: append(baseFlags, cli.StringFlag{ Name: transformFlag, Usage: "way to convert constants to a string;", Value: "none", }, cli.BoolFlag{ Name: tprefixFlag, Usage: "keep typename prefix in string values or not;", }, ), Action: genEnums, }
View Source
var ModelCmd = cli.Command{ Name: "model", Usage: "generate code for structure by template", Flags: []cli.Flag{ cli.StringFlag{ Name: tPath, Usage: "path to the templates; required;", }, cli.StringFlag{ Name: typesFlag, Usage: "list of type names; required;", }, cli.StringFlag{ Name: prefixFlag, Usage: "prefix to be added to the output file;", Value: "", }, cli.StringFlag{ Name: suffixFlag, Usage: "suffix to be added to the output file;", Value: "", }, }, Action: genModelAction, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.