gocarina / gocsv

The GoCSV package aims to provide easy CSV serialization and deserialization to the golang programming language
MIT License
1.99k stars 245 forks source link

Change unmarshaller to use CSVReader interface rather than *csv.Reader #258

Open sblackstone opened 1 year ago

sblackstone commented 1 year ago

Unmarshaller currently uses *csv.Reader as its input, however we can loosen this restriction and just internally use the pre-existing CSVReader interface instead as defined in decode.go

My use case for this is due to a file that uses multi-character field delimiters|| and this is unsupported by golang's encoding/csv