Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶ added in v0.2.0
type Layout interface { Enter(path string, last bool) Print(line string, first, last bool) Leave(path string, last bool) }
The Layout interface shapes a type visitor.
type PackageLoaderFunc ¶ added in v0.2.0
PackageLoaderFunc returns the Go packages named by the given patterns.
type Packagist ¶ added in v0.2.0
type Packagist struct { PackageLoaderFunc PackageLoaderFunc PathFilterFunc PathFilterFunc IncludeUnexported bool IncludeTestFiles bool // contains filtered or unexported fields }
Packagist carries inspection meta data.
type PathFilterFunc ¶ added in v0.2.0
PathFilterFunc is a simple string filtering/matching function.
func CreatePathFilterFunc ¶ added in v0.2.0
func CreatePathFilterFunc(include, exclude []string) PathFilterFunc
CreatePathFilterFunc gets a list of text patterns which are converted to regular expressions. The result of this function is a PathFilterFunc which can be used as a filter for matching patterns against strings.
type PathMap ¶ added in v0.2.0
PathMap carries the mapping between the fully qualified import paths and their type projections.
type PathReplaceFunc ¶ added in v0.2.0
PathReplaceFunc is a simple string replacement function.
func CreatePathReplaceFunc ¶ added in v0.2.0
func CreatePathReplaceFunc(list []string) PathReplaceFunc
CreatePathReplaceFunc returns the default path and name relocation function. The result is basically sanitized but bad input will lead to bad output.
type QualifierFunc ¶ added in v0.2.0
QualifierFunc returns the type qualifier (path) of a package.