feat: revise API, add README.md, LICENSE (#2)
Co-authored-by: Dmitry Fedotov <dmitry@uint32.ru> Co-committed-by: Dmitry Fedotov <dmitry@uint32.ru>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package script
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/csv"
|
||||
"errors"
|
||||
"os"
|
||||
@@ -20,7 +19,7 @@ type CSVWriter struct {
|
||||
}
|
||||
|
||||
// Write writer row to csv. Writes are buffered
|
||||
func (c *CSVWriter) Write(_ context.Context, record []string) error {
|
||||
func (c *CSVWriter) Write(record []string) error {
|
||||
err := c.wr.Write(record)
|
||||
c.err = err
|
||||
|
||||
|
Reference in New Issue
Block a user