Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormatUnix string = "unix"
Variables ¶
View Source
var ( ErrColumnNamesMismatch = errors.New("The number of column names does not match the number of fieldsin the record.") ErrUnsupportedTargetType = errors.New("Target interface must be of type struct or map.") ErrInvalidFieldType = errors.New("Struct field type must be int*, float*, bool, string, time, or a slice.") ErrReadAllNotSlicePointer = errors.New("The argument to ReadAll must be a pointer to a slice of structs.") ErrReadTargetNil = errors.New("The argument to Reader.Read[All] must be non nil.") )
Functions ¶
This section is empty.
Types ¶
type Reader ¶
Reader embeds *csv.Reader and contains the column names of the CSV data that is to be read.
func NewReader ¶
func NewReader( r io.Reader, options ...*ReaderOptions, ) (*Reader, error)
NewReader returns a new Reader that reads from r.
Click to show internal directories.
Click to hide internal directories.