-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.go
executable file
·40 lines (34 loc) · 941 Bytes
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Package meta version file defines variables.
//
// provides variables to store versin info and getters to give read access
package meta
import "github.com/cthiel77/server-demo/internal/meta/model"
var (
versionID = "undefined version id"
versionHashAlg = "undefined hash alg"
versionHash = "undefined hash"
buildTime = "undefined buildtime"
//Version version data
Version = model.Version{
ID: GetVersionID(),
HashAlg: GetVersionHashAlg(),
Hash: GetVersionHash(),
BuildTime: GetBuildTime(),
}
)
// GetVersionID returns the version string
func GetVersionID() string {
return versionID
}
// GetBuildTime returns the build time
func GetBuildTime() string {
return buildTime
}
// GetVersionHashAlg returns the ersion hash algorhythm key
func GetVersionHashAlg() string {
return versionHashAlg
}
// GetVersionHash returns the version hash
func GetVersionHash() string {
return versionHash
}