Documentation
¶
Overview ¶
Package buildinfo reports what a binary was built from, for the commands' version subcommand and --version flag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// Version is the release version (stamped with -ldflags at release
// builds, without "v"), else the module version Go recorded (a tag,
// for go install), else "(devel)" or "unknown".
Version string
// Commit is the Git commit (vcs.revision, or stamped with -ldflags
// where the build has no .git, as for the images), else "unknown".
Commit string
// Modified: built from a checkout with local changes.
Modified bool
// Go is the Go version the binary was built with; Platform is
// GOOS/GOARCH.
Go, Platform string
}
Info is what a binary was built from.
Click to show internal directories.
Click to hide internal directories.