Documentation ¶
Overview ¶
Package versioninfo uses runtime.ReadBuildInfo() to set global executable revision information if possible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version will be the version tag if the binary is built with "go install url/tool@version". // If the binary is built some other way, it will be "(devel)". Version = "unknown" // Revision is taken from the vcs.revision tag in Go 1.18+. Revision = "unknown" // LastCommit is taken from the vcs.time tag in Go 1.18+. LastCommit time.Time // DirtyBuild is taken from the vcs.modified tag in Go 1.18+. DirtyBuild = true )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.