Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 Changes in this version + var G = Generater + type Enum struct + Doc string + Items []*Item + Name string + func NewEnum(name string) *Enum + func (e *Enum) Add(i *Item) + type Generater struct + Marshal bool + ProtobufExt bool + func (g *Generater) Generate() ([]byte, error) + func (g *Generater) SetSrcFile(f string) + type Item struct + Doc string + Name string + func NewItem(name, doc string) *Item + func (i *Item) Show() string + type RenderParams struct + Backquote string + Enums *Set + Marshal bool + PKG string + Stringer bool + ValueMap bool + func NewRenderParams() *RenderParams + type Set struct + Items []*Enum + func NewEnumSet() *Set + func (s *Set) Add(i *Enum) + func (s *Set) Get(name string) *Enum + func (s *Set) GetLatest() *Enum + func (s *Set) Length() int