package
0.0.0-20201020153340-53909ea70814
Repository: https://github.com/gagliardetto/golang-go.git
Documentation: pkg.go.dev

# Functions

ClearPackageCache clears the in-memory package cache and the preload caches.
ClearPackageCachePartial clears packages with the given import paths from the in-memory package cache and the preload caches.
FindVendor looks for the last non-terminating "vendor" path element in the given import path.
GoFilesPackage creates a package for building a collection of Go files (typically named on the command line).
No description provided by the author
No description provided by the author
InstallTargetDir reports the target directory for installing the command p.
LinkerDeps returns the list of linker-induced dependencies for main package p.
LoadImport scans the directory named by path, which must be an import path, but possibly a local import path (an absolute file system path or one beginning with ./ or ../).
LoadImportWithFlags loads the package with the given import path and sets tool flags on that package.
MatchPackage(pattern, cwd)(p) reports whether package p matches pattern in the working directory cwd.
PackageList returns the list of packages in the dag rooted at roots as visited in a depth-first post-order traversal.
Packages returns the packages named by the command line arguments 'args'.
PackagesAndErrors is like 'packages' but returns a *Package for every argument, even the ones that cannot be loaded at all.
PackagesForBuild is like Packages but exits if any of the packages or their dependencies have errors (cannot be built).
ReloadPackageNoFlags is like LoadImport but makes sure not to use the package cache.
ResolveImportPath returns the true meaning of path when it appears in parent.
SafeArg reports whether arg is a "safe" command-line argument, meaning that when it appears in a command-line, it probably doesn't have some special meaning other than its own name.
TestPackageList returns the list of packages in the dag rooted at roots as visited in a depth-first post-order traversal, including the test imports of the roots.
TestPackagesAndErrors returns three packages: - pmain, the package main corresponding to the test binary (running tests in ptest and pxtest).
TestPackagesFor is like TestPackagesAndErrors but it returns an error if the test packages or their dependencies have errors.

# Constants

GetTestDeps is for download (part of "go get") and indicates that test dependencies should be fetched too.
ResolveImport means that loadImport should do import path expansion.
ResolveModule is for download (part of "go get") and indicates that the module adjustment should be done, but not vendor adjustment.
an old import path; fail to build.
to bin dir inside package root (default for non-cmd/*).
to GOROOT/pkg/tool (default for cmd/*).

# Variables

-asmflags.
-gccgoflags.
-gcflags.
-ldflags.
control whether we ignore imports in packages.
return effective bin directory.
return effective import path for directory.
update go.mod to add modules for imports in these files.
expand import paths.
wrap module info in .go code for binary.
module initialization hook; never nil, no-op if module use is disabled.
lookup effective meaning of import.
return module info to embed in binary.
return module info for Package struct.
No description provided by the author

# Structs

CoverVar holds the name of the generated coverage variables targeting the named file.
No description provided by the author
A Package describes a single package found in a directory.
A PackageError describes an error loading information about a package.
No description provided by the author
No description provided by the author
A PerPackageFlag is a command-line flag implementation (a flag.Value) that allows specifying different effective flags for different packages.
No description provided by the author

# Interfaces

ImportPathError is a type of error that prevents a package from being loaded for a given import path.

# Type aliases

An ImportStack is a stack of import paths, possibly with the suffix " (test)" appended.
No description provided by the author