Documentation ¶
Index ¶
- func EachFile(collector *marker.Collector, pkgs []*packages.Package, callback FileCallback) error
- func IsErrorType(t Type) bool
- func IsInterfaceType(t Type) bool
- func IsStructType(t Type) bool
- type Array
- type Basic
- type BasicInfo
- type BasicKind
- type Chan
- type ChanDirection
- type Constant
- type Constants
- type Constraint
- type CustomType
- type CustomTypes
- type Field
- type File
- func (f *File) Functions() *Functions
- func (f *File) ImportMarkers() []marker.ImportMarker
- func (f *File) Imports() *Imports
- func (f *File) Interfaces() *Interfaces
- func (f *File) Markers() marker.MarkerValues
- func (f *File) Name() string
- func (f *File) NumImportMarkers() int
- func (f *File) Package() *packages.Package
- func (f *File) Path() string
- func (f *File) Structs() *Structs
- type FileCallback
- type Files
- type Function
- func (f *Function) File() *File
- func (f *Function) IsVariadic() bool
- func (f *Function) Markers() marker.MarkerValues
- func (f *Function) Name() string
- func (f *Function) Params() Variables
- func (f *Function) Position() Position
- func (f *Function) Receiver() *Variable
- func (f *Function) Results() Variables
- func (f *Function) String() string
- func (f *Function) TypeParams() *TypeParams
- func (f *Function) Underlying() Type
- type Functions
- type Generic
- type Import
- type ImportedType
- type Imports
- type Interface
- func (i *Interface) Constraints() []*Constraint
- func (i *Interface) EmbeddedTypes() []Type
- func (i *Interface) ExplicitMethods() []*Function
- func (i *Interface) File() *File
- func (i *Interface) InterfaceType() *types.Interface
- func (i *Interface) IsAnonymous() bool
- func (i *Interface) IsConstraint() bool
- func (i *Interface) IsEmptyInterface() bool
- func (i *Interface) IsExported() bool
- func (i *Interface) Markers() marker.MarkerValues
- func (i *Interface) Methods() []*Function
- func (i *Interface) Name() string
- func (i *Interface) NumEmbeddedTypes() int
- func (i *Interface) NumExplicitMethods() int
- func (i *Interface) NumMethods() int
- func (i *Interface) Position() Position
- func (i *Interface) String() string
- func (i *Interface) Underlying() Type
- type Interfaces
- type Map
- type Pointer
- type Position
- type Slice
- type Struct
- func (s *Struct) AllFields() []*Field
- func (s *Struct) AllMethods() []*Function
- func (s *Struct) EmbeddedFields() []*Field
- func (s *Struct) Fields() []*Field
- func (s *Struct) File() *File
- func (s *Struct) Implements(i *Interface) bool
- func (s *Struct) IsAnonymous() bool
- func (s *Struct) IsExported() bool
- func (s *Struct) Markers() marker.MarkerValues
- func (s *Struct) Methods() []*Function
- func (s *Struct) Name() string
- func (s *Struct) NamedType() *types.Named
- func (s *Struct) NumAllFields() int
- func (s *Struct) NumAllMethods() int
- func (s *Struct) NumEmbeddedFields() int
- func (s *Struct) NumFields() int
- func (s *Struct) NumMethods() int
- func (s *Struct) Position() Position
- func (s *Struct) String() string
- func (s *Struct) Underlying() Type
- type Structs
- type Type
- type TypeParam
- type TypeParams
- type Variable
- type Variables
- type Variadic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorType ¶
func IsInterfaceType ¶
func IsStructType ¶
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) Underlying ¶
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
func (*Basic) Underlying ¶
type BasicInfo ¶
type BasicInfo int
BasicInfo is a set of flags describing properties of a basic type.
type Chan ¶
type Chan struct {
// contains filtered or unexported fields
}
func (*Chan) Direction ¶
func (c *Chan) Direction() ChanDirection
func (*Chan) Underlying ¶
type Constant ¶
type Constant struct {
// contains filtered or unexported fields
}
func (*Constant) IsExported ¶
func (*Constant) Underlying ¶
type Constraint ¶
type Constraint struct { }
func (*Constraint) Name ¶
func (c *Constraint) Name() string
func (*Constraint) String ¶
func (c *Constraint) String() string
func (*Constraint) Underlying ¶
func (c *Constraint) Underlying() Type
type CustomType ¶
type CustomType struct {
// contains filtered or unexported fields
}
func (*CustomType) AliasType ¶
func (c *CustomType) AliasType() Type
func (*CustomType) Name ¶
func (c *CustomType) Name() string
func (*CustomType) String ¶
func (c *CustomType) String() string
func (*CustomType) Underlying ¶
func (c *CustomType) Underlying() Type
type CustomTypes ¶
type CustomTypes struct {
// contains filtered or unexported fields
}
func (*CustomTypes) At ¶
func (c *CustomTypes) At(index int) *CustomType
func (*CustomTypes) FindByName ¶
func (c *CustomTypes) FindByName(name string) (*CustomType, bool)
func (*CustomTypes) Len ¶
func (c *CustomTypes) Len() int
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) IsEmbedded ¶
func (*Field) IsExported ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) ImportMarkers ¶
func (f *File) ImportMarkers() []marker.ImportMarker
func (*File) Interfaces ¶
func (f *File) Interfaces() *Interfaces
func (*File) Markers ¶
func (f *File) Markers() marker.MarkerValues
func (*File) NumImportMarkers ¶
type FileCallback ¶
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func (*Function) IsVariadic ¶
func (*Function) Markers ¶
func (f *Function) Markers() marker.MarkerValues
func (*Function) TypeParams ¶
func (f *Function) TypeParams() *TypeParams
func (*Function) Underlying ¶
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
func (*Generic) Underlying ¶
type Import ¶
type Import struct {
// contains filtered or unexported fields
}
func (*Import) SideEffect ¶
type ImportedType ¶
type ImportedType struct {
// contains filtered or unexported fields
}
func (*ImportedType) Name ¶
func (i *ImportedType) Name() string
func (*ImportedType) Package ¶
func (i *ImportedType) Package() *packages.Package
func (*ImportedType) String ¶
func (i *ImportedType) String() string
func (*ImportedType) Underlying ¶
func (i *ImportedType) Underlying() Type
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
func (*Interface) Constraints ¶
func (i *Interface) Constraints() []*Constraint
func (*Interface) EmbeddedTypes ¶
func (*Interface) ExplicitMethods ¶
func (*Interface) InterfaceType ¶
func (*Interface) IsAnonymous ¶
func (*Interface) IsConstraint ¶
func (*Interface) IsEmptyInterface ¶
func (*Interface) IsExported ¶
func (*Interface) Markers ¶
func (i *Interface) Markers() marker.MarkerValues
func (*Interface) NumEmbeddedTypes ¶
func (*Interface) NumExplicitMethods ¶
func (*Interface) NumMethods ¶
func (*Interface) Underlying ¶
type Interfaces ¶
type Interfaces struct {
// contains filtered or unexported fields
}
func (*Interfaces) At ¶
func (i *Interfaces) At(index int) *Interface
func (*Interfaces) FindByName ¶
func (i *Interfaces) FindByName(name string) (*Interface, bool)
func (*Interfaces) Len ¶
func (i *Interfaces) Len() int
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
func (*Pointer) Underlying ¶
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
func (*Slice) Underlying ¶
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func (*Struct) AllMethods ¶
func (*Struct) EmbeddedFields ¶
func (*Struct) Implements ¶
func (*Struct) IsAnonymous ¶
func (*Struct) IsExported ¶
func (*Struct) Markers ¶
func (s *Struct) Markers() marker.MarkerValues
func (*Struct) NumAllFields ¶
func (*Struct) NumAllMethods ¶
func (*Struct) NumEmbeddedFields ¶
func (*Struct) NumMethods ¶
func (*Struct) Underlying ¶
type TypeParams ¶
type TypeParams struct {
// contains filtered or unexported fields
}
func (*TypeParams) At ¶
func (t *TypeParams) At(index int) *TypeParam
func (*TypeParams) Len ¶
func (t *TypeParams) Len() int
type Variadic ¶
type Variadic struct {
// contains filtered or unexported fields
}
func (*Variadic) Underlying ¶
Click to show internal directories.
Click to hide internal directories.