23 lines
404 B
Go
23 lines
404 B
Go
package helpers
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// Version Constants
|
|
const versionNum string = "2024.04.0"
|
|
const versionSuffix string = "rc2"
|
|
const Version string = versionNum + "-" + versionSuffix
|
|
|
|
// Environment Variables
|
|
var Runtime string = getRuntime()
|
|
|
|
// Functions
|
|
func getRuntime() string {
|
|
var runtimeEnv string = os.Getenv("runtime")
|
|
if runtimeEnv == "" {
|
|
runtimeEnv = "unknown"
|
|
}
|
|
return runtimeEnv
|
|
}
|