Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Description = "make a isXXXXValid function"
View Source
var Flags = []cli.Flag{ cli.StringFlag{ Name: "type,t", Usage: "the variable type", }, cli.StringFlag{ Name: "tag,g", Usage: "the tag name", Value: "setdb", }, cli.StringFlag{ Name: "name,n", Usage: "the function `NAME`", Value: "SetSQL", }, cli.StringFlag{ Name: "output,o", Usage: "output to `FILE`", }, cli.StringFlag{ Name: "db", Usage: "specify the db type", Value: "sql.DB", }, cli.StringSliceFlag{ Name: "import,i", Usage: "the requried imports", }, }
View Source
var Usage = "generate enum valid function"
Functions ¶
Types ¶
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
condition
func (*Condition) InitFromTag ¶
type Generator ¶
Generator holds the state of the analysis. Primarily used to buffer the output for format.Source.
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) PrepareTask ¶
Click to show internal directories.
Click to hide internal directories.