Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEnumTypes ¶
func GenerateEnumTypes(options Options, enums ...StringEnumDefinition)
GenerateEnumTypes scaffolds enum types for the given options anddefinitions
Types ¶
type Options ¶
type Options struct { // Filesystem path of the directory corresponding to the package to be used or created PackageDirectoryPath string // Import path of the package to be used or created. It must be a valid path according to the working module structure PackageImportPath string // Whether to omit the generated code header on files. Default value is false OmitGeneratedNotice bool // Whether to omit tests for generated code. Default value is false OmitTests bool }
Options defined the options to be passed to the generator to configure certain aspects of the code generation
type StringEnumDefinition ¶
StringEnumDefinition is the basic name:values definition of an enumeration. As the name implies, this is for string enumerations only
Click to show internal directories.
Click to hide internal directories.