Documentation
¶
Overview ¶
Package csvfile reads the semicolon- or comma-separated files upstream sources publish, record by record, after checking their header. Its errors never quote a value of the file: it may hold personal data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads the records of a file after its header.
func Open ¶
Open checks that the semicolon-separated r starts with the header want and returns a reader of the records after it. A departure from the format is reported with errFormat, the source's own error.
func OpenSeparated ¶ added in v0.18.0
OpenSeparated is Open for a file whose fields are separated by comma. Both skip a leading UTF-8 byte order mark.
Click to show internal directories.
Click to hide internal directories.