Versions in this module Expand all Collapse all v1 v1.3.3 Jul 24, 2018 Changes in this version + var ErrNoGoPathSet = errors.New("GOPATH environment variable is not set") + type Alias struct + Type Type + Underlying Type + func (a Alias) IsNullable() bool + func (a Alias) IsRepeated() bool + func (a Alias) String() string + func (a Alias) TypeString() string + func (a Alias) UnqualifiedName() string + type BaseType struct + Nullable bool + Repeated bool + func (t *BaseType) IsNullable() bool + func (t *BaseType) IsRepeated() bool + func (t *BaseType) SetNullable(v bool) + func (t *BaseType) SetRepeated(v bool) + func (t *BaseType) String() string + func (t *BaseType) TypeString() string + func (t *BaseType) UnqualifiedName() string + type Basic struct + Name string + func (b Basic) IsNullable() bool + func (b Basic) String() string + func (b Basic) TypeString() string + func (b Basic) UnqualifiedName() string + type Docs struct + Doc []string + func (d *Docs) SetDocs(comments *ast.CommentGroup) + type Documentable interface + SetDocs func(*ast.CommentGroup) + type Enum struct + IsStringer bool + Name string + Values []*EnumValue + type EnumValue struct + Name string + type Field struct + Name string + Type Type + type Func struct + Input []Type + IsVariadic bool + Name string + Output []Type + Receiver Type + type Map struct + Key Type + Value Type + func (m Map) String() string + func (m Map) TypeString() string + func (m Map) UnqualifiedName() string + type Named struct + Name string + Path string + func (n Named) String() string + func (n Named) TypeString() string + func (n Named) UnqualifiedName() string + type Package struct + Aliases map[string]Type + Enums []*Enum + Funcs []*Func + Name string + Path string + Resolved bool + Structs []*Struct + type Scanner struct + func New(packages ...string) (*Scanner, error) + func (s *Scanner) Scan() ([]*Package, error) + type Struct struct + Fields []*Field + Generate bool + IsStringer bool + Name string + func (s *Struct) HasField(name string) bool + type Type interface + IsNullable func() bool + IsRepeated func() bool + SetNullable func(bool) + SetRepeated func(bool) + TypeString func() string + UnqualifiedName func() string + func NewAlias(typ, underlying Type) Type + func NewBasic(name string) Type + func NewMap(key, val Type) Type + func NewNamed(path, name string) Type