Leverage release as version

This commit is contained in:
Malachi Soord
2023-11-19 22:33:54 +01:00
parent 8be566afb9
commit 03f7ac8468
5 changed files with 201 additions and 257 deletions
-13
View File
@@ -1,18 +1,5 @@
package diagnostics
type ReleaseVersion string
var Version string
var Commit string
var BuildDate string
const (
DEV_VERSION ReleaseVersion = "dev"
PROD_VERSION ReleaseVersion = "prod"
CLOUD_VERSION ReleaseVersion = "cloud"
OTHER_VERSION ReleaseVersion = "other"
)
func GetReleaseVersion() ReleaseVersion {
return ReleaseVersion(Version)
}