Versions in this module Expand all Collapse all v2 v2.0.3 Feb 22, 2021 Changes in this version + const BeegoToml + const MDateFormat + var CompareExcept = []string + var DefaultBeegoPro = &Container + var GitRemotePath utils.DocValue + var ParserDriver = map[string]Parser + var SQL utils.DocValue + var SQLMode utils.DocValue + var SQLModeDown = "down" + var SQLModePath utils.DocValue + var SQLModeUp = "up" + func FileContentChange(org, new []byte, seg string) bool + func GetFilterContent(content string, seg string) string + func GetSeg(ext string) string + type Container struct + BeegoProFile string + CurPath string + EnableModules map[string]interface{} + FunctionOnce map[string]sync.Once + GenerateTime string + GenerateTimeUnix int64 + GoModFile string + Parser Parser + Timestamp Timestamp + TimestampFile string + TmplOption TmplOption + UserOption UserOption + func (c *Container) GenConfig() + func (c *Container) GetLocalPath() + func (c *Container) InitToml() + func (c *Container) Migration(args []string) + func (c *Container) Run() + type Descriptor struct + DstPath string + Module string + Once bool + Script string + SrcName string + func (d Descriptor) ExecScript(path string) (err error) + func (descriptor Descriptor) IsExistScript() bool + func (descriptor Descriptor) Parse(modelName string, paths map[string]string) (newDescriptor Descriptor, ctx pongo2.Context) + type ModelInfo struct + Comment string + Extend string + GoType string + InputType string + MysqlType string + Name string + Orm string + func (m ModelInfo) GetColumnKey() (columnKey string) + func (m ModelInfo) IsPrimaryKey() (flag bool) + type ModelInfos []ModelInfo + func (modelInfos ModelInfos) ToModelSchemas() (output ModelSchemas) + type ModelSchema struct + ColumnKey string + Comment string + Extend string + GoType string + InputType string + MysqlType string + Name string + OrmTag string + type ModelSchemas []*ModelSchema + func (m ModelSchemas) GetPrimaryKey() string + func (m ModelSchemas) IsExistTime() bool + type MysqlParser struct + func (*MysqlParser) Parse(descriptor Descriptor) + func (m *MysqlParser) GetRenderInfos(descriptor Descriptor) (output []RenderInfo) + func (m *MysqlParser) RegisterOption(userOption UserOption, tmplOption TmplOption) + func (t *MysqlParser) Unregister() + type Parser interface + GetRenderInfos func(descriptor Descriptor) (output []RenderInfo) + Parse func(descriptor Descriptor) + RegisterOption func(userOption UserOption, tmplOption TmplOption) + Unregister func() + type RenderFile struct + Context pongo2.Context + Descriptor Descriptor + FlushFile string + GenerateTime string + ModelName string + Option UserOption + PackageName string + PkgPath string + TmplPath string + func NewRender(m RenderInfo) *RenderFile + func (r *RenderFile) Exec(name string) + func (r *RenderFile) SetContext(key string, value interface{}) + type RenderInfo struct + Content ModelInfos + Descriptor Descriptor + GenerateTime string + ModelName string + Module string + Option UserOption + TmplPath string + type TableSchema struct + CharacterMaximumLength sql.NullInt64 + ColumnKey string + ColumnName string + ColumnType string + Comment string + DataType string + IsNullable string + NumericPrecision sql.NullInt64 + NumericScale sql.NullInt64 + TableName string + func (col TableSchema) ToGoType() (inputType string, goType string, err error) + type TableSchemas []TableSchema + func (tableSchemas TableSchemas) ToTableMap() (resp map[string]ModelInfos) + type TextModel struct + Comments []string + Extends []string + Names []string + Orms []string + func (content TextModel) ToModelInfos() (output []ModelInfo) + type TextParser struct + func (*TextParser) Parse(descriptor Descriptor) + func (t *TextParser) GetRenderInfos(descriptor Descriptor) (output []RenderInfo) + func (t *TextParser) RegisterOption(userOption UserOption, tmplOption TmplOption) + func (t *TextParser) Unregister() + type Timestamp struct + Generate int64 + GitCacheLastRefresh int64 + type TmplOption struct + Descriptor []Descriptor + RenderPath string + type UserOption struct + ApiPrefix string + Branch string + ContextDebug bool + Debug bool + Driver string + Dsn string + EnableFormat bool + EnableGitPull bool + EnableGomod bool + EnableModule []string + Extend map[string]string + GitLocalPath string + GitRemotePath string + Models map[string]TextModel + Path map[string]string + ProType string + RefreshGitTime int64 + SourceGen string