A drop in replacement for the stdlib csv implementation for golang, to make it support any dsv. Fully backward compatible while providing more features.
Forked from the 'encoding/csv' golang(1.3.3) csv implementation.
In addition to encoding/csv functionality, you can specify custom quoting characters for reading and writing.
fileReader, _ = os.Open("/tmp/wierd_dsv.txt")
csvReader := bettercsv.NewReader(fileReader)
csvReader.Comma = ';'
csvReader.Quote = '|'
content := csvReader.ReadAll()
go get github.com/tinygrasshopper/bettercsv
- Custom quote rune while reading
- Custom quote rune while writing
- Support no quoting charater while writing
- Supporting headers
- Reading to a map