Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2019 Changes in this version + const MaxFieldID + const SymbolCore + const SymbolUser + const Write16 + const Write32 + const Write64 + const Write8 + const WriteBits + const WriteLength + func SetErrorFilename(e error, filename string) error + func ToFieldName(typeName string) (name string, e error) + func ToPackageName(pkg string) (name string, e error) + type Context struct + func NewContext() *Context + func (c *Context) Find(pkg, name string) (t *Type, e error) + func (c *Context) Items() []*Package + func (c *Context) Keys() map[string]*Package + func (c *Context) Register(pkg, name, filename string, enum bool) (e error) + type Enum struct + func NewEnum(pkg, t string) *Enum + func (enum *Enum) Items() (items []EnumSymbol) + func (enum *Enum) Register(name string) (e error) + func (enum *Enum) RegisterValue(name string, val int16) (e error) + type EnumSymbol struct + Name string + Val int16 + func (symbol EnumSymbol) NameString() string + type Error struct + Filename string + Message string + func (e Error) Error() string + type Field struct + ID uint16 + Name string + Symbol Symbol + type Fields struct + func NewFields(pkg, t string) *Fields + func (fields *Fields) Items() (items []*Field) + func (fields *Fields) Register(id uint16, name string, symbol Symbol) (e error) + type Package struct + func NewPackage(name string) *Package + func (p *Package) FileKeys() map[string][]*Type + func (p *Package) Items() []*Type + func (p *Package) Keys() map[string]*Type + func (p *Package) Name() string + func (p *Package) Register(name, filename string, enum bool) (e error) + type SortType []*Type + func (arrs SortType) Len() int + func (arrs SortType) Less(i, j int) bool + func (arrs SortType) Swap(i, j int) + type Symbol interface + Core func() int + GetType func() *Type + IsBool func() bool + IsClass func() bool + IsCore func() bool + IsEnum func() bool + IsRepeat func() bool + IsString func() bool + Name func() string + Package func() string + SetType func(t *Type) + WriteString func() string + WriteType func() uint8 + func NewCoreSymbol(pkg, name string, repeat bool, writeType uint8) Symbol + func NewUserSymbol(pkg, name string, repeat bool, writeType uint8) Symbol + type Type struct + func NewType(pkg *Package, name, filename string, enum bool) *Type + func (t *Type) Enum() *Enum + func (t *Type) Fields() *Fields + func (t *Type) Filename() string + func (t *Type) Name() string + func (t *Type) Package() *Package