mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
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)
|
||
|
}
|