csv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ErrNotStruct               = csvError("Record is not a struct.")
	ErrNotSupported            = csvError("Operation is not supported.")
	ErrInvalidFieldType        = csvError("Field type not supported.")
	ErrInvalidDefaultFieldType = csvError("Default field type not supported.")
	StructFieldTag             = "csv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) Decoder

func (*Decoder) ReadHeader

func (d *Decoder) ReadHeader() error

func (*Decoder) ReadRecord

func (d *Decoder) ReadRecord(v interface{}) error

func (*Decoder) SetHeader

func (d *Decoder) SetHeader(h []string)

Jump to

Keyboard shortcuts

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