Export Decoder and SimpleDecoder interface methods.
Why?
Current implementation is leaving getCSVRow and getCSVRows as private methods. Therefore, we have no way to implement a custom SimpleDecoder from outside of this package.
# go.myapi.com/example/golang/testpkg
golang/testpkg/csv_reader_adapter.go:31:9: cannot use &CSVDecoderAdapter{...} (type *CSVDecoderAdapter) as type gocsv.SimpleDecoder in return argument:
*CSVDecoderAdapter does not implement gocsv.SimpleDecoder (missing gocsv.getCSVRow method)
have getCSVRow() ([]string, error)
want gocsv.getCSVRow() ([]string, error)
Description
Export
Decoder
andSimpleDecoder
interface methods.Why?
Current implementation is leaving
getCSVRow
andgetCSVRows
as private methods. Therefore, we have no way to implement a customSimpleDecoder
from outside of this package.References: https://groups.google.com/g/golang-nuts/c/6hpUErAfMHI