timetable-mgr/helpers/config.go
Fred Boniface 01da611d26
All checks were successful
Go Test / test (push) Successful in 3m43s
Minor adjustments to test deployment
2024-04-28 08:38:53 +01:00

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
}