Documentation ¶
Overview ¶
Package csv extends encoding/csv to understand field names and header row.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
Reader is a CSV reader based on encoding/csv.Reader. Additional functionality supports named access to fields.
func NewReader ¶
NewReader creates a new CSV reader object. At least one fieldName argument is required since the intent is to use them to access fields in records returned by Read. The wrapped encode/csv.Reader field is visible so its settings can be changed.
func (*Reader) FieldIndex ¶
FieldIndex returns the index of the field specified by name. An error is returned if there is no such field name.
Click to show internal directories.
Click to hide internal directories.