19 lines
421 B
Go
19 lines
421 B
Go
package version
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
// gitDescribe : Git's "git describe --always --dirty" output
|
|
var gitDescribe = ""
|
|
|
|
// BuildDate : Date of this build in YYYY-MM-DD format
|
|
var BuildDate = ""
|
|
|
|
// GoVersion : The go version used to compile this binary
|
|
var GoVersion = runtime.Version()
|
|
|
|
// OsArch : The OS and archetcture used for this binary
|
|
var OsArch = fmt.Sprintf("%s (%s)", runtime.GOOS, runtime.GOARCH)
|