Versions in this module Expand all Collapse all v1 v1.0.2 Feb 21, 2023 v1.0.1 Dec 25, 2022 Changes in this version + func SetRoot(rt string) v1.0.0 Dec 13, 2022 Changes in this version + const F_A_FLOAT + const F_A_INT + const F_A_MAP + const F_A_STRING + const F_BOOL + const F_FLOAT + const F_INT + const F_MAP + const F_O2M + const F_O2O + const F_STRING + const F_TIME + func CreateAuth(creator *Creator) + func CreateConfig(c *Creator) + func CreateConfigPreload(creator *Creator) + func CreateController(c *Creator) + func CreateCrud(creator *Creator) + func CreateDocument(creator *Creator) + func CreateEmptyController(c *Creator) + func CreateModelConfigFile(c *Creator) + func CreateNestedDocument(creator *Creator) string + func CreateOrmConfigFile(c *Creator) + func CreateVueAdminFile(creator *Creator) + func Init(c *Creator) + func ReadTpl(fileName string) string + func SetTwig(tg *twig.Twig) + type Creator struct + AppName string + Fields []*Field + RelationTables []*Creator + Table *Table + func NewDocument(name string, cnName string, path string) *Creator + func (c *Creator) Add(name string, label string) *Field + func (c *Creator) AddDocument(function func() *Creator) *Creator + func (c *Creator) AddString(name string, label string) *Field + func (c *Creator) Generate() + func (c *Creator) GetTable() *Table + func (c *Creator) SetCnName(cnName string) *Table + func (c *Creator) SetName(name string) *Table + func (c *Creator) SetPath(path string) *Table + type Field struct + CnName string + Name string + ReName string + Src string + Type string + func (this *Field) CreateConfig() *Field + func (this *Field) GetCnName() string + func (this *Field) GetConfig() *Field + func (this *Field) GetName() string + func (this *Field) GetReName() string + func (this *Field) GetSrc() string + func (this *Field) GetType() string + func (this *Field) IsArrayFloat() *Field + func (this *Field) IsArrayInt() *Field + func (this *Field) IsArrayMap() *Field + func (this *Field) IsArrayString() *Field + func (this *Field) IsBool() *Field + func (this *Field) IsFloat() *Field + func (this *Field) IsInt() *Field + func (this *Field) IsMap() *Field + func (this *Field) IsO20() *Field + func (this *Field) IsO2M() *Field + func (this *Field) IsString() *Field + func (this *Field) IsTime() *Field + func (this *Field) SetCnName(v string) *Field + func (this *Field) SetName(v string) *Field + func (this *Field) SetReName(v string) *Field + func (this *Field) SetSrc(v string) *Field + func (this *Field) SetType(v string) *Field + type OrmField struct + Name string + Tags string + Type string + type Table struct + CnName string + Fields []*Field + Name string + Path string