Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2021 Changes in this version + const Comment + const Separator + const Wrapper + func Marshal(v interface{}) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + type DecodeError struct + func (e *DecodeError) Error() string + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Buffer(buf []byte) *Decoder + func (d *Decoder) Comment(c rune) *Decoder + func (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeHeader(line string) ([]string, error) + func (d *Decoder) DecodeRecord(v interface{}, line string) error + func (d *Decoder) Header(h bool) *Decoder + func (d *Decoder) ReadLine() (string, error) + func (d *Decoder) Separator(r rune) *Decoder + func (d *Decoder) SkipUnknown(t bool) *Decoder + func (d *Decoder) Trim(t bool) *Decoder + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + func (e *Encoder) EncodeHeader(fields []string, v interface{}) error + func (e *Encoder) EncodeRecord(v interface{}) error + func (e *Encoder) Header(h bool) *Encoder + func (e *Encoder) HeaderWritten() bool + func (e *Encoder) Separator(r rune) *Encoder + func (e *Encoder) Trim(t bool) *Encoder + func (e *Encoder) Write(p []byte) (n int, err error) + type Marshaler interface + MarshalCSV func() ([]string, error) + type Unmarshaler interface + UnmarshalCSV func(header, values []string) error