Documentation ¶
Overview ¶
based on encoding/csv
based on encoding/csv
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { Delimiter rune // Field delimiter (set to '\t' by NewReader) Comment rune // Comment character for start of line // contains filtered or unexported fields }
A Reader reads records from a LTSV-encoded file.
As returned by NewReader, a Reader expects input LTSV-encoded file. The exported fields can be changed to customize the details before the first call to Read or ReadAll.
Delimiter is the field delimiter. It defaults to '\t'.
Comment, if not 0, is the comment character. Lines beginning with the Comment character are ignored.
type Writer ¶
type Writer struct { Delimiter rune // Label delimiter (set to to '\t' by NewWriter) UseCRLF bool // True to use \r\n as the line terminator // contains filtered or unexported fields }
A Writer writes records to a LTSV encoded file.
As returned by NewWriter, a Writer writes records terminated by a newline and uses '\t' as the field delimiter. The exported fields can be changed to customize the details before the first call to Write or WriteAll.
Delimiter is the field delimiter.
If UseCRLF is true, the Writer ends each record with \r\n instead of \n.
func (*Writer) Flush ¶
func (w *Writer) Flush()
Flush writes any buffered data to the underlying io.Writer.