Documentation ¶
Overview ¶
Package easycsv provides some utilities that simplify reading CSV data using the encoding/csv package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadColumns ¶
ReadColumns reads specified CSV columns from reader and returns a slice of records. Returned rows contain values in the order provided in columns. The header row is not included in the returned result. If any of the column names cannot be found in the CSV header row, ReadColumns returns an error.
func ReadColumnsFunc ¶
ReadColumnsFunc reads specified CSV columns from reader and calls f for every record. Function f is called for every row with values in the order provided in columns. ReadColumnsFunc doesn't call f for the header row. If any of the column names cannot be found in the CSV header row, ReadColumnsFunc returns an error.
Types ¶
This section is empty.