mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
b23ca60efd
* Add version linking to binaries via --workspace_status_command=./scripts/workspace_status.sh * dont export some things * lint and better date * even better date
15 lines
315 B
Go
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)
|
|
}
|