Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
/ csv Public archive

fork of go's encoding/csv with extra writer options

License

Notifications You must be signed in to change notification settings

DataDog/csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv

Godoc license

fork of go's encoding/csv with extra writer options

install

go get github.com/DataDog/csv

usage

The main addition to encoding/csv is the added added UnquoteEmpty option on Writers:

type Writer struct {
    Comma        rune // Field delimiter (set to ',' by NewWriter)
    UseCRLF      bool // True to use \r\n as the line terminator
    UnquoteEmpty bool // True to not quote empty fields
}

This option allows you to forgo quotes on empty fields, which makes its output compatible with some CSV SQL dumps that differentiate between "", a blank string, and a completely empty field, which means NULL.

About

fork of go's encoding/csv with extra writer options

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages