An open API service indexing awesome lists of open source software.

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

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).