go-whosonfirst-csv: github.com/whosonfirst/go-whosonfirst-csv Index | Files

package csv

import "github.com/whosonfirst/go-whosonfirst-csv"

Index

Package Files

csv.go

type DictReader Uses

type DictReader struct {
    Reader     *gocsv.Reader
    Fieldnames []string
}

func NewDictReader Uses

func NewDictReader(fh io.Reader) (*DictReader, error)

func NewDictReaderFromPath Uses

func NewDictReaderFromPath(path string) (*DictReader, error)

func (DictReader) Read Uses

func (dr DictReader) Read() (map[string]string, error)

type DictWriter Uses

type DictWriter struct {
    Writer     *gocsv.Writer
    Fieldnames []string
}

func NewDictWriter Uses

func NewDictWriter(fh io.Writer, fieldnames []string) (*DictWriter, error)

func NewDictWriterFromPath Uses

func NewDictWriterFromPath(path string, fieldnames []string) (*DictWriter, error)

func (DictWriter) WriteHeader Uses

func (dw DictWriter) WriteHeader()

func (DictWriter) WriteRow Uses

func (dw DictWriter) WriteRow(row map[string]string)

Package csv imports 3 packages (graph) and is imported by 4 packages. Updated 2019-05-26. Refresh now. Tools for package owners.