internal

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 8 Imported by: 0

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)
}

Layout ...

type PackageLoaderFunc added in v0.2.0

type PackageLoaderFunc func(*packages.Config, ...string) ([]*packages.Package, error)

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 ...

func (*Packagist) Inspect added in v0.2.0

func (p *Packagist) Inspect(patterns ...string) (TypeMap, error)

Inspect finds matching types in the packages named by the given patterns.

type PathFilterFunc added in v0.2.0

type PathFilterFunc func(string) bool

PathFilterFunc is a simple string filtering/matching function.

func CreatePathFilterFunc added in v0.2.0

func CreatePathFilterFunc(list []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

type PathMap map[string]string

PathMap ...

type PathReplaceFunc added in v0.2.0

type PathReplaceFunc func(string) string

PathReplaceFunc is a simple string replacement function.

func CreatePathReplaceFunc added in v0.2.0

func CreatePathReplaceFunc(list []string) PathReplaceFunc

CreatePathReplaceFunc ...

type QualifierFunc added in v0.2.0

type QualifierFunc func(p types.Package) string

QualifierFunc returns the type qualifier (path) of a package.

type TreeWalker added in v0.2.0

type TreeWalker struct {
	Layout
	// contains filtered or unexported fields
}

TreeWalker ...

func (*TreeWalker) Walk added in v0.2.0

func (t *TreeWalker) Walk(m PathMap) error

Walk ...

type TypeMap

type TypeMap map[string]types.Type

TypeMap is a set of types indexed by their package import paths.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL