(key, defaultValue string)
| 17 | } |
| 18 | |
| 19 | func getEnvWithDefault(key, defaultValue string) string { |
| 20 | value := os.Getenv(key) |
| 21 | if value == "" { |
| 22 | return defaultValue |
| 23 | } |
| 24 | |
| 25 | return value |
| 26 | } |
| 27 | |
| 28 | func splitCommaEnv(key, defaultValue string) []string { |
| 29 | value := getEnvWithDefault(key, defaultValue) |