func elementsFromLine(config *Config, line string) []interface{} {
	separated := strings.Split(line, config.Delim)
	elements := make([]interface{}, len(separated))
	for i, field := range separated {
		value := field
		if !config.NoTrim {
			value = strings.TrimSpace(field)
		}

		// Apply the empty value, if configured.
		if value == "" && config.Empty != "" {
			value = config.Empty
		}
		elements[i] = value
	}
	return elements
}
func elementsFromLine(config *Config, line string) []interface{} {
	separated := strings.Split(line, config.Delim)
	elements := make([]interface{}, len(separated))
	for i, field := range separated {
		value := field
		if !config.NoTrim {
			value = strings.TrimSpace(field)
		}

		
		if value == "" && config.Empty != "" {
			value = config.Empty
		}
		elements[i] = value
	}
	return elements
}
func elementsFromLine ( config * Config , line string ) [ ] interface { } { separated := strings . Split ( line , config . Delim ) elements := make ( [ ] interface { } , len ( separated ) ) for i , field := range separated { value := field if ! config . NoTrim { value = strings . TrimSpace ( field ) } // Apply the empty value, if configured. if value == " " && config . Empty != " " { value = config . Empty } elements [ i ] = value } return elements }
// elementsFromLine returns a list of elements, each representing a single
// item which will belong to a column of output.
elementsFromLine returns a list of elements each representing a single item which will belong to a column of output .