Versions in this module Expand all Collapse all v0 v0.9.1 Oct 10, 2023 v0.9.0 Aug 27, 2023 Changes in this version + func Mapify(e Enum) (ret string, err error) + func Namify(e Enum) (ret string, err error) + func Offset(index int, enumType string, val EnumValue) (strResult string) + func ParseAliases(aliases []string) error + func Stringify(e Enum, forceLower bool) (ret string, err error) + func Unmapify(e Enum, lowercase bool) (ret string, err error) + func UnmapifyStringEnum(e Enum, lowercase bool) (ret string, err error) + type Enum struct + Comment string + Name string + Prefix string + Type string + Values []EnumValue + type EnumValue struct + Comment string + Name string + PrefixedName string + RawName string + ValueInt interface{} + ValueStr string + type Generator struct + BuildDate string + BuiltBy string + Revision string + Version string + func NewGenerator() *Generator + func (g *Generator) Generate(f *ast.File) ([]byte, error) + func (g *Generator) GenerateFromFile(inputFile string) ([]byte, error) + func (g *Generator) WithBuildTags(tags ...string) *Generator + func (g *Generator) WithCaseInsensitiveParse() *Generator + func (g *Generator) WithFlag() *Generator + func (g *Generator) WithForceLower() *Generator + func (g *Generator) WithLowercaseVariant() *Generator + func (g *Generator) WithMarshal() *Generator + func (g *Generator) WithMustParse() *Generator + func (g *Generator) WithNames() *Generator + func (g *Generator) WithNoComments() *Generator + func (g *Generator) WithNoPrefix() *Generator + func (g *Generator) WithPrefix(prefix string) *Generator + func (g *Generator) WithPtr() *Generator + func (g *Generator) WithSQLDriver() *Generator + func (g *Generator) WithSQLInt() *Generator + func (g *Generator) WithSQLNullInt() *Generator + func (g *Generator) WithSQLNullStr() *Generator + func (g *Generator) WithTemplates(filenames ...string) *Generator + func (g *Generator) WithValues() *Generator + func (g *Generator) WithoutSnakeToCamel() *Generator