Documentation ¶
Overview ¶
Package build provides a simple mechanism for getting at debug.BuildInfo in a more ergonomic way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Main Module `json:"main,omitempty"` // The main module Time time.Time `json:"time,omitempty"` // The modification time associated with Commit Settings map[string]string `json:"settings,omitempty"` // The remaining settings Go string `json:"go,omitempty"` // The Go toolchain version used to build the binary Path string `json:"path,omitempty"` // The package path of the main package OS string `json:"os,omitempty"` // The value of $GOOS Arch string `json:"arch,omitempty"` // The value of $GOARCH VCS string `json:"vcs,omitempty"` // The version control system for the source tree where the build ran Commit string `json:"commit,omitempty"` // The SHA1 of the current commit when the build ran Version string `json:"version,omitempty"` // The module version Dirty bool `json:"dirty,omitempty"` // Whether the source tree had local modifications at the time of the build }
BuildInfo contains the build information of a Go binary.
Click to show internal directories.
Click to hide internal directories.