package
0.4.7
Repository: https://github.com/minio/controller-tools.git
Documentation: pkg.go.dev

# Packages

Package testutils defines utilities for using loader.Packages in tests.

# Functions

EachType calls the given callback for each (gendecl, typespec) combo in the given package.
ErrFromNode returns the given error, with additional information attaching it to the given AST node.
LoadRoots loads the given "root" packages by path, transitively loading and all imports as well.
LoadRootsWithConfig functions like LoadRoots, except that it allows passing a custom loading config.
MaybeErrList constructs an ErrList if the given list of errors has any errors, otherwise returning nil.
NonVendorPath returns a package path that does not include anything before the last vendor directory.
ParseAstTag parses the given raw tag literal into a reflect.StructTag.
PrintErrors print errors associated with all packages in the given package graph, starting at the given root packages and traversing through all imports.

# Structs

Package is a single, unique Go package that can be lazily parsed and type-checked.
PositionedError represents some error with an associated position.
TypeChecker performs type-checking on a limitted subset of packages by checking each package's types' externally-referenced types, and only type-checking those packages.

# Interfaces

Node is the intersection of go/ast.Node and go/types.Var.

# Type aliases

ErrList is a list of errors aggregated together into a single error.
NodeFilter filters nodes, accepting them for reference collection when true is returned and rejecting them when false is returned.
TypeCallback is a callback called for each raw AST (gendecl, typespec) combo.