enumer

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SubCmd = "enum"

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File holds a single parsed file and associated data.

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

type Generator

type Generator struct {
	*shoot.GeneratorBase
	// contains filtered or unexported fields
}

Generator holds the state of the analysis.

func New

func New() *Generator

func (*Generator) ListTypes

func (g *Generator) ListTypes() []string

func (*Generator) LoadPackage

func (g *Generator) LoadPackage(patterns ...string) map[string]*packages.Package

func (*Generator) MakeData

func (g *Generator) MakeData(typeName string) (any, bool)

func (*Generator) ParseFlags

func (g *Generator) ParseFlags()

type Package

type Package struct {
	// contains filtered or unexported fields
}

Package holds information about a Go package

type TmplData

type TmplData struct {
	*shoot.TmplDataBase
	NameList []string
	Enums    string
	Max      string
	Bitwise  bool
	JSON     bool
	Text     bool
	SQL      bool
	Gorm     bool
}

func NewTmplData

func NewTmplData(cmdline, version string) *TmplData

type Value

type Value struct {
	// contains filtered or unexported fields
}

Value represents a declared constant.

Jump to

Keyboard shortcuts

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