func splitValuesByCommas()

in proxy/lib/proxy/options.go [179:193]


func splitValuesByCommas(str string) []string {
	if len(str) == 0 {
		return nil
	}

	var res []string
	for _, s := range strings.Split(str, ",") {
		trimmed := strings.TrimSpace(s)
		if len(trimmed) > 0 {
			res = append(res, trimmed)
		}
	}

	return res
}