https://github.com/riptl/go-quotecsv
Fork of encoding/csv with control over quotation
https://github.com/riptl/go-quotecsv
Last synced: about 1 year ago
JSON representation
Fork of encoding/csv with control over quotation
- Host: GitHub
- URL: https://github.com/riptl/go-quotecsv
- Owner: riptl
- Created: 2019-10-08T01:58:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-01T16:28:25.000Z (almost 5 years ago)
- Last Synced: 2025-02-24T18:06:55.203Z (about 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-quotecsv
Fork of Go's `encoding/csv` to offer greater control over quoting,
by adding a new `Column` type:
```go
type Column struct {
Quoted bool
Value string
}
```
This is useful when serializing non-literal primitives like NULLs or numbers.
When reading, `Quoted` reports whether a field was quoted or not.
When writing, `Quoted` forces quotation (but not the lack thereof in the opposite case).