Versions in this module Expand all Collapse all v1 v1.0.1 Feb 20, 2024 Changes in this version + type Enum struct + Name string + Options scanner.Options + PkgPath string + func NewEnum(pkgTypeOrName string, options scanner.Options) *Enum + func (e *Enum) ConstName(value string) codegen.Snippet + func (e *Enum) ConstUnknown() codegen.Snippet + func (e *Enum) TextMarshalerAndTextUnmarshaler(file *codegen.File) + func (e *Enum) TextScanAndValuer(file *codegen.File) + func (e *Enum) VarInvalidError() codegen.Snippet + func (e *Enum) WriteErrors(file *codegen.File) + func (e *Enum) WriteInt(file *codegen.File) + func (e *Enum) WriteLabelStringParser(file *codegen.File) + func (e *Enum) WriteLabeler(file *codegen.File) + func (e *Enum) WriteStringParser(file *codegen.File) + func (e *Enum) WriteStringer(file *codegen.File) + func (e *Enum) WriteToFile(file *codegen.File) + func (e *Enum) WriteTypeNameAndConstValues(file *codegen.File) + type Generator struct + func NewGenerator(pkg *packagesx.Package) *Generator + func (g *Generator) Output(cwd string) + func (g *Generator) Scan(names ...string)