Versions in this module Expand all Collapse all v0 v0.0.2 Jul 5, 2023 Changes in this version + var Backends = make(map[string]Backend) + func MakeGrammar() *Grammar + func Register(name string, backend Backend) + type ArrayType struct + Count uint64 + SubType Type + func (at *ArrayType) Resolve(s *Schema) error + type Backend interface + Flags func() *flag.FlagSet + Generate func(*Schema) (string, error) + GeneratedFilename func(string) string + type BoolType struct + type ByteType struct + type DeferType struct + Defer string + Resolved Type + func (d *DeferType) Resolve(s *Schema) error + type Field struct + Name string + Tag string + Type Type + type FloatType struct + Bits int + type IntType struct + Bits int + Signed bool + VarInt bool + type PointerType struct + SubType Type + func (p *PointerType) Resolve(s *Schema) error + type ResolveError struct + Defer string + func (r ResolveError) Error() string + type ResolveType interface + Resolve func(s *Schema) error + type Schema struct + Structs []*Struct + func ParseSchema(rs io.ReadSeeker) (*Schema, error) + func (s *Schema) ResolveAll() error + type SliceType struct + SubType Type + func (st *SliceType) Resolve(s *Schema) error + type StringType struct + type Struct struct + Fields []*Field + Framed bool + Name string + type StructType struct + Struct string + type TimeType struct + type Type interface + type UnionType struct + Interface string + Types []Type + func (u *UnionType) Resolve(s *Schema) error