(env string, defaultValue string)
| 19 | } |
| 20 | |
| 21 | func GetEnvOrDefaultString(env string, defaultValue string) string { |
| 22 | if env == "" || os.Getenv(env) == "" { |
| 23 | return defaultValue |
| 24 | } |
| 25 | return os.Getenv(env) |
| 26 | } |
| 27 | |
| 28 | func GetEnvOrDefaultBool(env string, defaultValue bool) bool { |
| 29 | if env == "" || os.Getenv(env) == "" { |
no outgoing calls
no test coverage detected