func parseMulti(s string) (values []string, rest string, err error) {
	needComma := false
	rest = s
	for rest != "" && rest[0] != ' ' {
		if needComma {
			if rest[0] != ',' {
				return values, rest, errors.New("expected comma after quoted value")
			}
			rest = rest[1:]
		}
		needComma = true

		var value string
		value, rest, err = parseSingle(rest, ", ")
		if err != nil {
			return values, rest, errors.Trace(err)
		}
		if value != "" {
			values = append(values, value)
		}
	}
	return values, rest, nil
}
// parseMulti parses multiple (optionally quoted) comma-separated values from s
// and returns the values and the remainder of the string.
parseMulti parses multiple (optionally quoted) comma-separated values from s
and returns the values and the remainder of the string.
// parseMulti parses multiple ( optionally quoted ) comma - separated values from s // and returns the values and the remainder of the string .
func parseMulti(s string) (values []string, rest string, err error) {
	needComma := false
	rest = s
	for rest != "" && rest[0] != ' ' {
		if needComma {
			if rest[0] != ',' {
				return values, rest, errors.New("expected comma after quoted value")
			}
			rest = rest[1:]
		}
		needComma = true
		var value string
		value, rest, err = parseSingle(rest, ", ")
		if err != nil {
			return values, rest, errors.Trace(err)
		}
		if value != "" {
			values = append(values, value)
		}
	}
	return values, rest, nil
}
func parseMulti ( s string ) ( values [ ] string , rest string , err error ) { needComma := false rest = s for rest != " " && rest [ 0 ] != ' ' { if needComma { if rest [ 0 ] != ',' { return values , rest , errors . New ( " " ) } rest = rest [ 1 : ] } needComma = true var value string value , rest , err = parseSingle ( rest , " " ) if err != nil { return values , rest , errors . Trace ( err ) } if value != " " { values = append ( values , value ) } } return values , rest , nil }
parseMulti parses multiple (optionally quoted) comma-separated values from s
and returns the values and the remainder of the string.
parseMulti parses multiple ( optionally quoted ) comma - separated values from s and returns the values and the remainder of the string .