Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a CSV reader that only counts fields. It avoids allocating/copying memory and to verify behaviour, it is tested and fuzzed against encoding/csv parser.
func (*Parser) CountFields ¶
CountFields reads one CSV line and counts how many records that line contained. hasMore reports whether there are more lines in the input. collectIndexes makes CountFields return a list of indexes where CSV fields start in the line. These indexes are used to test the correctness against the encoding/csv parser.
Click to show internal directories.
Click to hide internal directories.