Versions in this module Expand all Collapse all v0 v0.0.3 Oct 5, 2023 Changes in this version type CsvOption + func WithSkipErrors() CsvOption v0.0.2 Sep 12, 2023 Changes in this version + var ErrNotInReadMode = errors.New("csv is not in read mode") + var ErrNotInWriteMode = errors.New("csv is not in write mode") + type ConcurrentWaitGroup interface + Add func() + Done func() + Wait func() + type Csv struct + func NewCsv(opts ...CsvOption) (c *Csv[T], e error) + func (c *Csv[T]) Close() (errs []error) + func (c *Csv[T]) Range(fn func(offset int, item T) error, wg ConcurrentWaitGroup) error + func (c *Csv[T]) Read() (T, error) + func (c *Csv[T]) Write(item T) error + type CsvOption func(o *csvOptions) + func WithAppendFile() CsvOption + func WithFilePath(filePath string) CsvOption + func WithMissingHeader() CsvOption + func WithRead() CsvOption + func WithReader(reader io.ReadCloser) CsvOption + func WithSkipRows(rows int) CsvOption + func WithTruncatedFile() CsvOption + func WithWrite() CsvOption + func WithWriter(writer io.WriteCloser) CsvOption