tsv

package
v0.1.180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

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.
	// contains filtered or unexported fields
}

A Decoder reads and decodes TSV rows from an input stream.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder returns a new decoder.

func (*Decoder) Decode

func (dec *Decoder) Decode(v interface{}) error

Decode a single entry, use csv struct tags.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL