Versions in this module Expand all Collapse all v1 v1.0.3 Mar 3, 2023 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(file string) ([]byte, error) + 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