splitAndTrim slices a string into all substrings after each comma and returns a slice of those space-trimmed substrings
(commaSeparatedList string)
| 220 | // splitAndTrim slices a string into all substrings after each comma and |
| 221 | // returns a slice of those space-trimmed substrings |
| 222 | func splitAndTrim(commaSeparatedList string) []string { |
| 223 | list := strings.Split(commaSeparatedList, ",") |
| 224 | for i := range list { |
| 225 | list[i] = strings.TrimSpace(list[i]) |
| 226 | } |
| 227 | return list |
| 228 | } |
no outgoing calls
no test coverage detected