generator

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnumFile

func NewEnumFile(inputPath, outputDir, pkg string) error

Types

type EnumDefinition

type EnumDefinition struct {
	Type        string      `yaml:"type"`
	Description string      `yaml:"description"`
	Values      []EnumValue `yaml:"values"`
}

type EnumValue

type EnumValue struct {
	Name    string            `yaml:"name"`
	Value   any               `yaml:"value"` // support string and int
	Label   map[string]string `yaml:"label"`
	Comment string            `yaml:"comment"`
}

Jump to

Keyboard shortcuts

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