timetable-mgr/helpers/config.go
Fred Boniface 493fb41da8
Some checks failed
Go Test / test (push) Failing after 48s
Reorganise repo
2024-04-05 22:23:42 +01:00

23 lines
404 B
Go

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