csvd: github.com/jfyne/csvd Index | Files

package csvd

import "github.com/jfyne/csvd"


Package Files

csvd.go dialect.go frequency.go sniffer.go

func NewReader Uses

func NewReader(r io.Reader, s ...*Sniffer) *csv.Reader

NewReader returns a csv.Reader with the delimiter detected. As a second argument you can pass in a *Sniffer instance to use instead of the defaults, this can provide a different set of delimiters to look for.

type Sniffer Uses

type Sniffer struct {
    // contains filtered or unexported fields

Sniffer works on the CSV file to detect its delimiter.

func NewSniffer Uses

func NewSniffer(sampleSize int, delims ...rune) *Sniffer

NewSniffer creates a new Sniffer struct. It can be provded with a sampleSize int which tells the sniffer how many rows to look at, and a list of rune delimiters.

Package csvd imports 7 packages (graph) and is imported by 1 packages. Updated 2019-03-04. Refresh now. Tools for package owners.