debian-mirror-gitlab/workhorse/internal/version/version.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
326 B
Go
Raw Normal View History

2022-11-25 23:54:43 +05:30
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)
}