Versions in this module Expand all Collapse all v0 v0.1.2 Oct 13, 2023 v0.1.1 Sep 30, 2023 Changes in this version + var ErrHeaderNotRead = errors.New("typedcsv: header not read") + type FieldFormatError struct + Field string + NestedError error + func (e FieldFormatError) Error() string + func (e FieldFormatError) Unwrap() error + type FieldParseError struct + Field string + NestedError error + func (e FieldParseError) Error() string + func (e FieldParseError) Unwrap() error + type TypedCSVReader struct + Header map[string]int + Reader *csv.Reader + func NewReader(reader *csv.Reader) *TypedCSVReader[T] + func (r *TypedCSVReader[T]) ReadAll() (records []*T, err error) + func (r *TypedCSVReader[T]) ReadHeader() error + func (r *TypedCSVReader[T]) ReadRecord() (record *T, err error) + type TypedCSVWriter struct + Writer *csv.Writer + func NewWriter(writer *csv.Writer) *TypedCSVWriter[T] + func (w *TypedCSVWriter[T]) Error() error + func (w *TypedCSVWriter[T]) Flush() + func (w *TypedCSVWriter[T]) WriteHeader() error + func (w *TypedCSVWriter[T]) WriteRecord(record T) error