Versions in this module Expand all Collapse all v0 v0.1.0 Nov 19, 2024 Changes in this version + var ConflictedShortNames = map[string]bool + var KnownTypeMap = map[string]bool + var ShortNameTypeMap = map[string]string + func CopyDefaultTemplates(dir string) error + type Generator struct + func NewGenerator(loader Loader, inflector internal.Inflector, opt GeneratorOption) *Generator + func (g *Generator) ExecuteTemplate(tt TemplateType, name string, sub string, obj interface{}) error + func (g *Generator) Generate(tableMap map[string]*internal.Type, ixMap map[string]*internal.Index) error + type GeneratorOption struct + CustomTypePackage string + Filename string + FilenameSuffix string + FilenameUnderscore bool + PackageName string + Path string + SingleFile bool + Tags string + TemplatePath string + type Loader interface + NthParam func(i int) string + type TBuf struct + Buf *bytes.Buffer + Name string + Subname string + TemplateType TemplateType + type TBufSlice []TBuf + func (t TBufSlice) Len() int + func (t TBufSlice) Less(i, j int) bool + func (t TBufSlice) Swap(i, j int) + type TemplateType uint + const IndexTemplate + const TypeTemplate + const YOTemplate + func (tt TemplateType) String() string