Documentation ¶
Overview ¶
Package buildinfo provides version information about the current build.
The values "Version" and "Date" should be set via `-ldflags` option during build. Sample command to build:
$ VER_APP="$(git describe --tag)" $ go build -ldflags="-X 'main.Version=${VER_APP}'" ./path/to/main.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Date = "" // YYYY-MM-DD
Date is dynamically set at build time in the Makefile.
View Source
var Version = ""
Version is dynamically set by the toolchain or overridden by the Makefile.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.