Documentation ¶
Index ¶
- func ConversionsTemplate(enum Enum) ([]byte, error)
- func ConversionsTestTemplate(enum Enum) ([]byte, error)
- func EvalValueString(expression string) (string, error)
- func GenerateEnumHelpers(pkgName string, enums []Enum, opts Options) ([]byte, error)
- func GenerateEnumHelpersTests(pkgName string, enums []Enum) ([]byte, error)
- func NumericConversionsTemplate(enum Enum) ([]byte, error)
- func NumericConversionsTestTemplate(enum Enum) ([]byte, error)
- func ValuesFieldTemplate(enum Enum) ([]byte, error)
- func ValuesStructTemplate(enum Enum) ([]byte, error)
- type Enum
- type EnumValue
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConversionsTemplate ¶
func ConversionsTestTemplate ¶
func EvalValueString ¶
func GenerateEnumHelpers ¶
func ValuesFieldTemplate ¶
func ValuesStructTemplate ¶
Types ¶
type Enum ¶
func ListEnumsTypesValues ¶
func (Enum) ConstantBaseType ¶
func (Enum) InputVarName ¶
func (Enum) ValuesTypeName ¶
type EnumValue ¶
func (EnumValue) EscapedValue ¶
Click to show internal directories.
Click to hide internal directories.