Discover Packages
github.com/byte4cat/nbx/v2
internal
enumgo
generator
package
Version:
v2.0.4
Opens a new window with list of versions in this module.
Published: Oct 1, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewEnumFile(inputPath, outputDir, pkg string ) error
type EnumDefinition struct {
Type string `yaml:"type"`
Description string `yaml:"description"`
Values []EnumValue `yaml:"values"`
}
type EnumValue struct {
Name string `yaml:"name"`
Value any `yaml:"value"`
Label map[string ]string `yaml:"label"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.