Documentation
¶
Overview ¶
Package csvparser helps parsing a CSV file with a callback.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Callback ¶
type Callback struct { // Every is the number of records to read before calling the callback. Every int // Do is the function called after Every number of records has been // reached. The records length is equal to Every or less for the last // records. Do func(ctx context.Context, records [][]string) error }
Callback is a function which is called while parsing a CSV file.
Click to show internal directories.
Click to hide internal directories.