Documentation
¶
Index ¶
Constants ¶
View Source
const ( RecordSeparator byte = 0x1e UnitSeparator byte = 0x1f )
RecordSeparator as defined in ASCII
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
RecordSeparator, UnitSeparator byte
// contains filtered or unexported fields
}
Reader implements a unit-separator separated values reader. It works for any data where the field separator and the record separator cannot appear in the data. It avoids allocations for performance. It's around 6x faster than the builtin CSV reader, at the expense of not being able to handle quoted fields.
func (*Reader) ReadString ¶
ReadString reads one line of CSV, allocating for convenience. Use Read or ReadInto to avoid allocating.
Click to show internal directories.
Click to hide internal directories.