Versions in this module Expand all Collapse all v0 v0.9.5 Jun 16, 2026 v0.9.4 Jun 16, 2026 Changes in this version type Generator + func (g *Generator) Name() string v0.9.3 Jun 16, 2026 v0.9.2 Jun 16, 2026 v0.9.1 Jun 11, 2026 Changes in this version + type FieldInfo struct + AutoInc bool + ColumnName string + Extra []rune + GoType string + IsPK bool + Letters bool + Maximum int + Minimum int + Name string + NotNull bool + Numbers bool + OldName string + OmitEmpty bool + PK bool + Ref string + RefColumn string + Spaces bool + Tags []string + Tilde bool + Type fmt.FieldType + Unique bool + WidgetConstructor string + type Generator struct + func New() *Generator + func (g *Generator) GenerateForStruct(structName string, goFile string) error + func (g *Generator) MainInputFileRelativePath() string + func (g *Generator) NewFileEvent(fileName, extension, filePath, event string) error + func (g *Generator) ParseStruct(structName string, goFile string) (StructInfo, error) + func (g *Generator) Run() error + func (g *Generator) ScanModules(rootDir string) error + func (g *Generator) SetFinder(f *modfind.Finder) + func (g *Generator) SetLog(fn func(messages ...any)) + func (g *Generator) SetRootDir(dir string) + func (g *Generator) SetSkipTidy(skip bool) + func (g *Generator) SetSyncer(s SchemaSyncer) + func (g *Generator) SupportedExtensions() []string + func (g *Generator) UnobservedFiles() []string + func (o *Generator) GenerateForFile(infos []StructInfo, sourceFile string) error + func (o *Generator) ResolveRelations(all map[string]StructInfo) + func (o *Generator) RewriteModelTags(path string) error + type RelationInfo struct + ChildStruct string + FKColumn string + FKField string + FKFieldType string + LoaderName string + UseFieldDescriptor bool + type SchemaSyncer interface + SyncSchema func(table string, fields []fmt.Field) error + type SliceFieldInfo struct + ElemType string + Name string + type StructInfo struct + Fields []FieldInfo + IsForm bool + ModelName string + ModelNameDeclared bool + Name string + NoDB bool + PackageName string + Relations []RelationInfo + SliceFields []SliceFieldInfo + SourceFile string + WantTypedFields bool