(key string, fallback bool)
| 32 | } |
| 33 | |
| 34 | func GetBool(key string, fallback bool) bool { |
| 35 | val, ok := os.LookupEnv(key) |
| 36 | if !ok { |
| 37 | return fallback |
| 38 | } |
| 39 | |
| 40 | boolVal, err := strconv.ParseBool(val) |
| 41 | if err != nil { |
| 42 | return fallback |
| 43 | } |
| 44 | |
| 45 | return boolVal |
| 46 | } |
nothing calls this directly
no outgoing calls
no test coverage detected