Documentation ¶
Overview ¶
Package tsv implements a decoder for tab separated data. CSV looks like a simple format, but its surprisingly hard to create valid CSV files. Sometimes simply splitting a string circumvents all the problems that come with quoting styles, field counts and so on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { Header []string // Column names. Separator string // Field separator. // contains filtered or unexported fields }
A Decoder reads and decodes TSV rows from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder with tab as field separator.
func NewDecoderSeparator ¶
NewDecoderSeparator creates a new decoder with a given separator.
Click to show internal directories.
Click to hide internal directories.