Documentation
¶
Overview ¶
Package gocmd provides functions for working with the Go tool. This package is not named "go" because that name collides with a reserved keyword.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Go ¶
Go contains configuration information for the Go tool.
type GoListOutput ¶
type GoListOutput struct {
Name string
ImportPath string
Dir string
Standard bool
Imports []string
Deps []string
Error *GoListPackageError
DepsErrors []*GoListPackageError
}
GoListOutput is a subset of the output of `go list`. See `go help list` for details.
type GoListPackageError ¶
GoListPackageError is the PackageError struct defined in `go help list`.
type Package ¶
type Package struct {
Name string // Vendored import name (what would go into an `import` statement).
ImportPath string // Fully qualified import name (including `vendor` folders).
Dir string // Absolute location on filesystem.
IsInternal bool // Whether the package is an internal package.
IsStdLib bool // Whether the package is a part of the standard library.
Imports []string // Direct dependencies.
Deps []string // Transitive dependencies.
Error interface{} // A package loading error, if applicable.
}
Package represents a single Go package.
Click to show internal directories.
Click to hide internal directories.