2023-07-15 23:00:48 +01:00
|
|
|
package helpers
|
2023-07-15 22:32:46 +01:00
|
|
|
|
|
|
|
import (
|
2023-07-18 00:25:13 +01:00
|
|
|
"os"
|
2023-07-15 22:32:46 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// Version Constants
|
2024-04-26 21:47:52 +01:00
|
|
|
const versionNum string = "2024.04.0"
|
2024-04-28 11:52:00 +01:00
|
|
|
const versionSuffix string = "beta2"
|
2023-07-15 23:00:48 +01:00
|
|
|
const Version string = versionNum + "-" + versionSuffix
|
2023-07-15 22:32:46 +01:00
|
|
|
|
|
|
|
// Environment Variables
|
2023-07-21 12:12:16 +01:00
|
|
|
var Runtime string = getRuntime()
|
2023-07-15 22:32:46 +01:00
|
|
|
|
|
|
|
// Functions
|
|
|
|
func getRuntime() string {
|
|
|
|
var runtimeEnv string = os.Getenv("runtime")
|
|
|
|
if runtimeEnv == "" {
|
|
|
|
runtimeEnv = "unknown"
|
|
|
|
}
|
|
|
|
return runtimeEnv
|
|
|
|
}
|