Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDataIsNil = errors.New("data is nil") ErrOnlyOneRowIsAllowedForStringArray = errors.New("only one row is allowed for type 'string,array'") ErrOnlyOneRowIsAllowedForInt64Array = errors.New("only one row is allowed for type 'int64,array'") ErrOnlyOneRowIsAllowedForFloat64Array = errors.New("only one row is allowed for type 'float64,array'") ErrOnlyOneRowIsAllowedForBoolArray = errors.New("only one row is allowed for type 'bool,array'") ErrInEmbeddedJSON = errors.New("unable to parse json in csv") ErrUnsupportedType = errors.New("unsupported type format type") )
Functions ¶
This section is empty.
Types ¶
type CSVParser ¶ added in v1.1.0
type CSVParser struct {
// Comma defines the rune with which the entries in the csv file are separated from each other.
Comma rune
// Comment defines the rune used to mark comment strings within the CSV.
// If the line starts with this rune, the whole line is ignored.
Comment rune
// TrimLeadingSpace specifies whether leading spaces should be trimmed or not.
TrimLeadingSpace bool
// SkipEmptyColumns defines whether empty rows should be ignored or not.
SkipEmptyColumns bool
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.