Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { TagName string ColumnNamesInFirstRow bool Reader *csv.Reader // contains filtered or unexported fields }
Reader is a wrapper for standard library CSV Reader that allows unmarshalling into a slice of structs.
func (*Reader) Load ¶
Load reads CSV contents and unmarshals them into given destination. Destination value must be a pointer to a slice of structs.
func (*Reader) SetColumnNames ¶
SetColumnNames assigns column names. Use this function if column names are not provided in the first row.
Click to show internal directories.
Click to hide internal directories.