generator

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumDef

type EnumDef struct {
	Name   string
	Values []EnumValue
}

type EnumValue

type EnumValue struct {
	ConstantName string // The PascalCase name used for the constant (e.g., "InProgress")
	StringValue  string // The original string value (e.g., "in_progress")
}

type Generator

type Generator struct {
	Enums []EnumDef
	// contains filtered or unexported fields
}

Generator handles the enum code generation

func NewGenerator

func NewGenerator(pkgPath string) *Generator

func (*Generator) PackageDir

func (g *Generator) PackageDir() string

func (*Generator) PackageName

func (g *Generator) PackageName() string

func (*Generator) Parse

func (g *Generator) Parse() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL