Documentation ¶
Overview ¶
Package tsv implements a tsv reader.
This custom package is used as replacement of the standard library csv package as GBIF tab delimited files are not compatible with the quotation rules used by that package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFieldCount = errors.New("wrong number of fields")
Parsing errors.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { // Ignored field, // used for compatibility // with standard library csv package. Comma rune // contains filtered or unexported fields }
A Reader reads records from a TSV-encoded file.
The Reader converts all \r\n sequences in its input to plain \n.
type Writer ¶
type Writer struct { // Unused, // for compatibility with standard library csv package Comma rune UseCRLF bool // contains filtered or unexported fields }
A Writer writes records using TSV encoding.
Tab is the field delimiter. The Writer ends each output line with \r\n.
func (*Writer) Flush ¶
func (w *Writer) Flush()
Flush writes any buffered data to the underlying io.Writer. To check if an error occurred during the Flush, call Error.
Click to show internal directories.
Click to hide internal directories.