| 1 | package csv |
| 2 | |
| 3 | // A Process is a function that can be run asynchronously that consumes a stream of CSV |
| 4 | // records provided by reader and writes them into a writer of CSV records as |
| 5 | // constructed by the specified builder. It signals its successful completion by |
| 6 | // writing a nil into the specified error channel. An unsuccessful completion |
| 7 | // is signaled by writing at most one error into the specified error channel. |
| 8 | type Process interface { |
| 9 | Run(reader Reader, builder WriterBuilder, errCh chan<- error) |
| 10 | } |