Versions in this module Expand all Collapse all v1 v1.1.4 Jan 1, 2018 Changes in this version + const ENUM + const ERROR + const FORMAT + const IDENT + const PRIM + const RESERVED + const STR + const STRUCT + const SUM + const TAG + func Format(buf *bytes.Buffer, ast interface{}) + func ToString(ast interface{}) string + type Def struct + Items []DefItem + Kind DefKind + Name TypeNameOccur + func Parse(filename string, src io.Reader) ([]Def, error) + type DefItem struct + IsSlice bool + Name ItemNameOccur + Tag TagOccur + Type TypeNameOccur + func (i DefItem) IsReserved() bool + type DefKind int + const EnumDef + const PrimDef + const StructDef + const SumDef + type ItemName string + func (in ItemName) String() string + type ItemNameOccur struct + Name ItemName + Pos Pos + type Pos struct + func (pos Pos) String() string + type PosError struct + Err error + Pos Pos + func (e PosError) Error() string + type Tag int32 + func (t Tag) String() string + type TagOccur struct + Pos Pos + Tag Tag + type TypeName string + func (tn TypeName) String() string + type TypeNameOccur struct + Name TypeName + Pos Pos