Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnumSpec ¶
type EnumSpec struct { EnumNamePlural string EnumNameSingular string EnumNameInComments string FileName string Values []*EnumSpecValue }
EnumSpec describes the specification for a generated enum.
func ProcessSimpleEnumSpecs ¶
ProcessSimpleEnumSpecs implements a standard, simplified specification for enum specs.
- Each key in the map should be an upper camel, plural enum name. - Each entry in the values slice should be an upper camel, singular value name.
type EnumSpecValue ¶
EnumSpecValue describes the specification for a generated enum value.
Click to show internal directories.
Click to hide internal directories.