Documentation
¶
Overview ¶
Package buildinfo reports the version control revision that the Go toolchain stamps into a binary at build time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RevisionFromSettings ¶
func RevisionFromSettings(settings []debug.BuildSetting) (revision string, modified bool)
RevisionFromSettings reads the commit the toolchain stamps into a binary built inside a repository, and whether that tree carried uncommitted changes. A build made outside a repository carries no stamp, which is reported as an unknown revision so the log line always has a value.
func RunningBuild ¶
RunningBuild reports the stamp of the binary that is executing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.