Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputGormTemplate = parseTemplateOrPanic(`
///////////////////////////////////////////////////////////
// THIS FILE IS AUTO GENERATED by widgets, DON'T EDIT IT //
// ANY CHANGES DONE HERE WILL BE LOST //
///////////////////////////////////////////////////////////
package {{.PackageName}}
import (
{{range .Imports}}
"{{.}}"{{end}}
)
/**
* @Author: BoolDesign
* @Email: booldesign@163.com
* @Date: {{.Date}}
* @Desc:
*/
// {{.CamelTableName}} {{.Comment}}
type {{.CamelTableName}} struct {
{{range .Fields}}
{{.}}{{end}}
}
func ({{.CamelTableName}}) TableName() string {
return "{{.TableName}}"
}
`)
Functions ¶
func GenerateField ¶
func GenerateFields ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.