csv

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromReader

func FromReader(r *csv.Reader, opt ...FromReaderOption) rivo.Worker[rivo.None, []string]

FromReader returns a generator worker that reads from a csv.Reader. It's not thread-safe to use a pool size greater than 1.

func ToWriter

func ToWriter(w *csv.Writer) rivo.Sync[[]string]

ToWriter returns a sync worker that writes to a csv.Writer. Each input []string is written as a row in the CSV. Any errors encountered during writing are sent to the errs channel.

Types

type FromReaderOption added in v0.6.0

type FromReaderOption func(*fromReaderOptions) error

func DiscardHeader added in v0.6.0

func DiscardHeader() FromReaderOption

DiscardHeader configures FromReader to skip the first line of the CSV file.

Jump to

Keyboard shortcuts

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