Versions in this module Expand all Collapse all v0 v0.9.0 May 25, 2017 Changes in this version + const Natural + const PriorityJustADefault + const PriorityNormal + const PriorityOverride + var ErrWeirdDef = errors.New("this line is best ignored") + func ParseLine(line string, state ParseState) (*Def, ParseState, error) + func ToGoName(s string) string + type Alterations struct + Renamings map[string]string + type Arg struct + CondArgName string + CondBit int + Name string + Type TypeExpr + func (a *Arg) Alter(alter *Alterations) + func (a Arg) CanonicalString() string + func (a Arg) String() string + type Comb struct + Origin string + Priority Priority + TypeStr string + func (c *Comb) FullName() string + type Def struct + Args []Arg + CombName ScopedName + GenericArgs []Arg + IsFunc bool + IsInternal bool + IsQuestionMark bool + IsWeird bool + OriginalStr string + ResultType TypeExpr + Tag uint32 + func Parse(text string) ([]*Def, error) + func (d *Def) Alter(alter *Alterations) + func (d *Def) FixTag() error + func (d *Def) Simplify() error + func (d Def) CanonicalString() string + func (d Def) String() string + type ParseOptions struct + AllowZeroTags bool + Alterations *Alterations + FixZeroTags bool + FixZeroTagsIn map[string]bool + MarkInternal bool + Origin string + Priority Priority + type ParseState struct + InsideFuncs bool + type Priority int + type Schema struct + func MustParse(text string) *Schema + func (sch *Schema) ByName(name string) *Comb + func (sch *Schema) ByTag(tag uint32) *Comb + func (sch *Schema) Combs() []*Comb + func (sch *Schema) Funcs() []*Comb + func (sch *Schema) Parse(text string, options ParseOptions) error + func (sch *Schema) Type(name string) *Type + func (sch *Schema) Types() []*Type + type ScopedName struct + func MakeScopedName(s string) ScopedName + func MakeScopedNameComponents(scope, short string) ScopedName + func (n *ScopedName) Alter(alter *Alterations) + func (n ScopedName) Full() string + func (n ScopedName) GoName() string + func (n ScopedName) HasScope() bool + func (n ScopedName) IsBare() bool + func (n ScopedName) Scope() string + func (n ScopedName) Short() string + func (n ScopedName) String() string + type Type struct + Ctors []*Comb + Name ScopedName + Origin string + Priority Priority + func (t *Type) String() string + type TypeExpr struct + GenericArgs []TypeExpr + IsBang bool + IsPercent bool + Name ScopedName + func (t *TypeExpr) Alter(alter *Alterations) + func (t *TypeExpr) Simplify(genericTypeNames []string) + func (t TypeExpr) CanonicalString() string + func (t TypeExpr) IsBare() bool + func (t TypeExpr) IsJustTypeName() bool + func (t TypeExpr) String() string