// CompactField compact query field for possible comma separated values
CompactField compact query field for possible comma separated values
// CompactField compact query field for possible comma separated values
func CompactField(str string) string {
	str = strings.TrimSpace(str)
	if strings.Contains(str, ",") {
		var values = make([]string, 0)
		var splits = strings.Split(str, ",")
		for _, s := range splits {
			values = append(values, strings.TrimSpace(s))
		}
		return strings.Join(values, ",")
	}
	return str
}
func CompactField ( str string ) string { str = strings . TrimSpace ( str ) if strings . Contains ( str , " " ) { var values = make ( [ ] string , 0 ) var splits = strings . Split ( str , " " ) for _ , s := range splits { values = append ( values , strings . TrimSpace ( s ) ) } return strings . Join ( values , " " ) } return str }
CompactField compact query field for possible comma separated values
CompactField compact query field for possible comma separated values