Versions in this module Expand all Collapse all v0 v0.2.0 Oct 12, 2022 Changes in this version type TemplatePackage + ORMDbStruct string + ORMNeeded bool v0.1.0 Sep 13, 2022 Changes in this version + const Template + func CreateCommand() *cobra.Command + type Basic struct + func New() *Basic + func (g *Basic) AddFlags(command *cobra.Command) + func (g *Basic) Generate() error + func (g *Basic) Options() Options + func (g *Basic) Packer() base.Packer + func (g *Basic) ReadFlags(command *cobra.Command) error + func (g *Basic) SetOptions(options Options) + type Options struct + AddJSONTag bool + JSONTypes map[string]string + KeepPK bool + NoAlias bool + NoDiscard bool + Package string + SoftDelete string + UseSQLNulls bool + func (o *Options) Def() + type TemplateColumn struct + Comment template.HTML + Tag template.HTML + func NewTemplateColumn(entity model.Entity, column model.Column, options Options) TemplateColumn + type TemplateEntity struct + Alias string + Columns []TemplateColumn + HasRelations bool + NoAlias bool + Relations []TemplateRelation + Tag template.HTML + func NewTemplateEntity(entity model.Entity, options Options) TemplateEntity + type TemplatePackage struct + Entities []TemplateEntity + HasImports bool + Imports []string + Package string + func NewTemplatePackage(entities []model.Entity, options Options) TemplatePackage + type TemplateRelation struct + Comment template.HTML + Tag template.HTML + func NewTemplateRelation(relation model.Relation, options Options) TemplateRelation + func NewTemplateRelationWithJoin(relation model.Relation, relFK, relPK string, options Options) TemplateRelation