package env import "os" func GetEnvDefault(key, defVal string) string { val, ex := os.LookupEnv(key) if !ex { os.Setenv(key, defVal) return defVal } return val }