Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadError ¶
IsReadError reports whether err is a row read error. It checks if the error is of type rowReadError.
func IsRowError ¶
IsRowError checks if an error is a rowProcessError. It returns true if the error is of type rowProcessError, otherwise it returns false.
Types ¶
type CSVReader ¶
type CSVReader struct {
Processor func(row []string) (err error) // Callback funcction for each row read.
ErrorHandler func(line int, row string, err error) (abort bool) // ErrorHandler when problem reading CSV or processing CSV.
}
CSVReader processes CSV data row by row.
Click to show internal directories.
Click to hide internal directories.