Welcome to mirror list, hosted at ThFree Co, Russian Federation.

version.go « version « internal « workhorse - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 790edf8ffca9b6b8ed1d638cadfd57db23121795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package version

import "fmt"

var version = "unknown"
var build = "unknown"
var schema = "gitlab-workhorse (%s)-(%s)"

func SetVersion(v, b string) {
	version = v
	build = b
}

func GetUserAgent() string {
	return GetApplicationVersion()
}

func GetApplicationVersion() string {
	return fmt.Sprintf(schema, version, build)
}