Added constants for release version and device types, added diagnostics.GetReleaseVersion

This commit is contained in:
Paulo Truta
2022-02-05 21:52:49 +00:00
parent 162665b115
commit ef994a1002
3 changed files with 51 additions and 28 deletions
+13 -2
View File
@@ -1,7 +1,18 @@
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)
}