Documentation
¶
Overview ¶
Package buildinfo is used to include build time information into a compiled app.
Please see github.com/andrejacobs/go-aj/examples/buildinfo/Makefile on how to use GO_LDFLAGS to set the information at compile time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppName string // The name of the app (binary executable) GitCommitHash string // The hash of the last commit in the git repository Version string // The version of the app )
Functions ¶
func UsageNameAndVersion ¶
func UsageNameAndVersion() string
Return the name of the app and version info as displayed in the usage information.
func VersionString ¶
func VersionString() string
Return the version information that can be shown to a user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.