Documentation ¶
Overview ¶
Package types contains logic for parsing type definitions from ast packages and filtering those types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
A Dependency is a struct containing a package and a dependent type spec.
func (Dependency) Name ¶
func (d Dependency) Name() string
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
A Dir is a type that represents a directory containing Go packages.
func (Dir) Dependencies ¶
func (d Dir) Dependencies(name string) []Dependency
Dependencies returns all interface types that typ depends on for method parameters or results.
func (Dir) ExportedTypes ¶
ExportedTypes returns all *ast.TypeSpecs found by d. Interface types with anonymous interface types will be flattened, for ease of mocking by other logic.
func (Dir) Filter ¶
Filter filters d's types, removing all types that don't match any of the passed in matchers.
Click to show internal directories.
Click to hide internal directories.