Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
A Reader reads records from a CSV-encoded file.
func (*Reader) Read ¶
Read wraps csv.Reader.Read, creating a map of column name to field value. If the line has fewer columns than Reader.Columns, the map will not contain keys for these columns; thus we can distinguish between missing columns and columns with empty values. If the line has more columns than Reader.Columns, Reader.Read() ignores them.
func (*Reader) ReadAll ¶
ReadAll reads all the remaining records from r. Each record is a map of column name to field value.
func (*Reader) ReadHeader ¶
ReadHeader simply wraps csv.Reader.Read().
Click to show internal directories.
Click to hide internal directories.