Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Customized string
Customized defines a template for customized in model
var Delete string
Delete defines a delete template
var DeleteMethod string
DeleteMethod defines a delete template for interface method
var Error string
Error defines an error template
var Field string
Field defines a filed template for types
var FindOne string
FindOne defines find row by id.
var FindOneByField string
FindOneByField defines find row by field.
var FindOneByFieldExtraMethod string
FindOneByFieldExtraMethod defines find row by field with extras.
var FindOneByFieldMethod string
FindOneByFieldMethod defines find row by field method.
var FindOneMethod string
FindOneMethod defines find row method.
var Imports string
Imports defines a import template for model in cache case
var ImportsNoCache string
ImportsNoCache defines a import template for model in normal case
var Insert string
Insert defines a template for insert code in model
var InsertMethod string
InsertMethod defines an interface method template for insert code in model
var ModelCustom string
ModelCustom defines a template for extension
var ModelGen = fmt.Sprintf(`%s // versions: // goctl version: %s package {{.pkg}} {{.imports}} {{.vars}} {{.types}} {{.new}} {{.delete}} {{.find}} {{.insert}} {{.update}} {{.extraMethod}} {{.tableName}} {{.customized}} `, util.DoNotEditHead, version.BuildVersion)
ModelGen defines a template for model
var New string
New defines the template for creating model instance.
var TableName string
TableName defines a template that generate the tableName method.
var Tag string
Tag defines a tag template text
var Types string
Types defines a template for types in model.
var Update string
Update defines a template for generating update codes
var UpdateMethod string
UpdateMethod defines an interface method template for generating update codes
var Vars string
Vars defines a template for var block in model
Functions ¶
This section is empty.
Types ¶
This section is empty.