Documentation ¶
Index ¶
- func Mapify(e Enum) (ret string, err error)
- func Namify(e Enum) (ret string, err error)
- func Offset(index int, enumType string, val EnumValue) (strResult string)
- func Stringify(e Enum, forceLower bool) (ret string, err error)
- func Unmapify(e Enum, lowercase bool) (ret string, err error)
- type Config
- type Enum
- type EnumValue
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { Version string Revision string BuildDate string BuiltBy string Config // contains filtered or unexported fields }
Generator is responsible for generating validation files for the given in a go source file.
func NewGenerator ¶
NewGenerator is a constructor method for creating a new Generator with default templates loaded.
Click to show internal directories.
Click to hide internal directories.