Versions in this module Expand all Collapse all v0 v0.1.3 Apr 18, 2018 Changes in this version type Generator + func (g *Generator) WithFlag() *Generator v0.1.2 Nov 3, 2017 Changes in this version type EnumValue + RawName string v0.1.1 Aug 19, 2017 Changes in this version + func Mapify(e Enum) (ret string, err error) + func Stringify(e Enum) (ret string, err error) + func Unmapify(e Enum, lowercase bool) (ret string, err error) + type Enum struct + Name string + Prefix string + Type string + Values []EnumValue + type EnumValue struct + Name string + PrefixedName string + Value int + type Generator struct + func NewGenerator() *Generator + func (g *Generator) Generate(f *ast.File) ([]byte, error) + func (g *Generator) GenerateFromFile(inputFile string) ([]byte, error) + func (g *Generator) WithLowercaseVariant() *Generator + func (g *Generator) WithMarshal() *Generator + func (g *Generator) WithNoPrefix() *Generator