Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2017 Changes in this version + var ErrFieldCount = errors.New("wrong number of fields in record") + func Marshal(v interface{}) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + type Decoder struct + Tag string + func NewDecoder(r Reader, header ...string) (dec *Decoder, err error) + func (d *Decoder) Decode(v interface{}) (err error) + func (d *Decoder) Header() []string + func (d *Decoder) Record() []string + func (d *Decoder) Unused() (indexes []int) + type Encoder struct + Tag string + func NewEncoder(w Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + type InvalidDecodeError struct + Type reflect.Type + func (e *InvalidDecodeError) Error() string + type InvalidEncodeError struct + Type reflect.Type + func (e *InvalidEncodeError) Error() string + type InvalidMarshalError struct + Type reflect.Type + func (e *InvalidMarshalError) Error() string + type InvalidUnmarshalError struct + Type reflect.Type + func (e *InvalidUnmarshalError) Error() string + type Marshaler interface + MarshalCSV func() ([]byte, error) + type MarshalerError struct + Err error + MarshalerType string + Type reflect.Type + func (e *MarshalerError) Error() string + type Reader interface + Read func() ([]string, error) + type UnmarshalTypeError struct + Type reflect.Type + Value string + func (e *UnmarshalTypeError) Error() string + type Unmarshaler interface + UnmarshalCSV func([]byte) error + type UnsupportedTypeError struct + Type reflect.Type + func (e *UnsupportedTypeError) Error() string + type Writer interface + Write func([]string) error