MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / splitAndTrim

Function splitAndTrim

pkg/configparser/configparser.go:222–228  ·  view source on GitHub ↗

splitAndTrim slices a string into all substrings after each comma and returns a slice of those space-trimmed substrings

(commaSeparatedList string)

Source from the content-addressed store, hash-verified

220// splitAndTrim slices a string into all substrings after each comma and
221// returns a slice of those space-trimmed substrings
222func 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}

Callers 2

ReadConfigMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected