sq/cli/buildinfo/buildinfo.go

19 lines
482 B
Go
Raw Normal View History

2020-08-06 20:58:47 +03:00
// Package buildinfo hosts build info variables populated via ldflags.
package buildinfo
// 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 (
// 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
)