(key, defaultValue string)
| 26 | } |
| 27 | |
| 28 | func splitCommaEnv(key, defaultValue string) []string { |
| 29 | value := getEnvWithDefault(key, defaultValue) |
| 30 | parts := strings.Split(value, ",") |
| 31 | result := make([]string, 0, len(parts)) |
| 32 | for _, part := range parts { |
| 33 | if trimmed := strings.TrimSpace(part); trimmed != "" { |
| 34 | result = append(result, trimmed) |
| 35 | } |
| 36 | } |
| 37 | return result |
| 38 | } |
no test coverage detected