2020-08-06 20:58:47 +03:00
|
|
|
// Package buildinfo hosts build info variables populated via ldflags.
|
|
|
|
package buildinfo
|
|
|
|
|
2020-08-09 16:46:46 +03:00
|
|
|
// DefaultVersion is the default value for Version if not
|
|
|
|
// set via ldflags.
|
|
|
|
const DefaultVersion = "v0.0.0-dev"
|
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
var (
|
2020-08-09 16:46:46 +03:00
|
|
|
// Version is the build version. If not set at build time via
|
|
|
|
// ldflags, Version takes the value of DefaultVersion.
|
|
|
|
Version = DefaultVersion
|
2020-08-06 20:58:47 +03:00
|
|
|
|
|
|
|
// Commit is the commit hash.
|
|
|
|
Commit string
|
|
|
|
|
|
|
|
// Timestamp is the timestamp of when the cli was built.
|
|
|
|
Timestamp string
|
|
|
|
)
|