Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubCommands ¶
SubCommands returns a list of SubCommands for the "generate"" command
Types ¶
type Model ¶
type Model struct { Name string Table string FileName string PackageName string Path string FullPath string Fields []*ModelField Excluded []string }
Model represent a model to generate
type ModelField ¶
ModelField represents a field from the struct we are parsing
type ModelTemplateVars ¶
type ModelTemplateVars struct { ModelName string ModelNameLC string TableName string ModelVar string PackageName string CreateStmt string CreateStmtArgs string UpdateStmt string UpdateStmtArgs string FieldsAsArray string Excluded []string }
ModelTemplateVars contains all the variable needed to render the new file
func (*ModelTemplateVars) Generate ¶
func (mtv *ModelTemplateVars) Generate(wanted string) bool
Generate returns true if the element has not been excluded
Click to show internal directories.
Click to hide internal directories.