Versions in this module Expand all Collapse all v1 v1.6.1 Apr 6, 2017 Changes in this version + func Format(file string) (changed bool, err error) + func GenerateC(basedir string, packages []*Package) error + func GenerateECMA(basedir string, packages []*Package) error + func GenerateGo(basedir string, packages []*Package) error + func GenerateJava(basedir string, packages []*Package) error + func IsCKeyword(s string) bool + func IsECMAKeyword(s string) bool + func IsJavaKeyword(s string) bool + type Field struct + Docs []string + Index int + Name string + NameNative string + Struct *Struct + Type string + TypeList bool + TypeNative string + TypeRef *Struct + func (f *Field) DocText(indent string) string + func (f *Field) NameTitle() string + func (f *Field) String() string + type Package struct + Docs []string + ListMax string + Name string + NameNative string + SchemaFiles []string + SizeMax string + Structs []*Struct + SuperClass string + SuperClassNative string + func ParseFiles(files []string) ([]*Package, error) + func (p *Package) DocText(ident string) string + func (p *Package) HasFloat() bool + func (p *Package) HasList() bool + func (p *Package) HasTimestamp() bool + func (p *Package) Refs() []*Package + func (p *Package) SchemaFileList() string + type Struct struct + Docs []string + Fields []*Field + Name string + NameNative string + Pkg *Package + SchemaFile string + func (s *Struct) DocText(indent string) string + func (s *Struct) HasBinary() bool + func (s *Struct) HasBinaryList() bool + func (s *Struct) HasFloat() bool + func (s *Struct) HasList() bool + func (s *Struct) HasText() bool + func (s *Struct) HasTimestamp() bool + func (s *Struct) NameTitle() string + func (s *Struct) String() string