prysm-pulse/shared/version/version.go
Preston Van Loon b23ca60efd
Add simple version to binaries via golink (#1286)
* Add version linking to binaries via --workspace_status_command=./scripts/workspace_status.sh

* dont export some things

* lint and better date

* even better date
2019-01-09 23:19:33 -05:00

15 lines
315 B
Go

package version
import (
"fmt"
)
// The value of these vars are set through linker options.
var gitCommit = "Local build"
var buildDate = "Moments ago"
// GetVersion returns the version string of this build.
func GetVersion() string {
return fmt.Sprintf("Git commit: %s. Built at: %s", gitCommit, buildDate)
}