Documentation ¶ Index ¶ Variables type CsvReader func NewReader(source io.Reader, headers []string) (reader *CsvReader) func (r *CsvReader) Headers() (cols []string) func (r *CsvReader) Read() (line Line, err error) func (r *CsvReader) ReadAll() (lines []Line, err error) type Line func (l *Line) Get(key string) (val string, err error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidColumn = errors.New("no column with that name exists") ErrNoData = errors.New("no data exists for that column") ) Functions ¶ This section is empty. Types ¶ type CsvReader ¶ type CsvReader struct { *csv.Reader // contains filtered or unexported fields } func NewReader ¶ func NewReader(source io.Reader, headers []string) (reader *CsvReader) func (*CsvReader) Headers ¶ func (r *CsvReader) Headers() (cols []string) func (*CsvReader) Read ¶ func (r *CsvReader) Read() (line Line, err error) func (*CsvReader) ReadAll ¶ func (r *CsvReader) ReadAll() (lines []Line, err error) type Line ¶ type Line struct { // contains filtered or unexported fields } func (*Line) Get ¶ func (l *Line) Get(key string) (val string, err error) Source Files ¶ View all Source files zcsv.go Click to show internal directories. Click to hide internal directories.