timetable-mgr/helpers/config.go
Fred Boniface 5b1ab9b12f
All checks were successful
Go Test / test (push) Successful in 43s
Fix logging of failed VSTP messages
2024-04-28 11:52:15 +01:00

23 lines
406 B
Go

package helpers
import (
"os"
)
// Version Constants
const versionNum string = "2024.04.0"
const versionSuffix string = "beta2"
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
}