blob: 821a7eee99b5ff0301fc23ee4078d62623809659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package version
import (
"fmt"
)
var version string
var buildtime string
// GetVersionString returns a standard version header
func GetVersionString() string {
return fmt.Sprintf("Gitaly, version %v", version)
}
// GetVersion returns the semver compatible version number
func GetVersion() string {
return version
}
// GetBuildTime returns the time at which the build took place
func GetBuildTime() string {
return buildtime
}
|