Read in a full-spec CSV (y'know, the nasty kind with escaped quotes, newlines, and a variable number of columns), get back JSON
转到文件
AJ ONeal aa5c081078 Initial commit 2019-06-27 21:45:27 -06:00
.gitignore Initial commit 2019-06-27 21:45:27 -06:00
LICENSE Initial commit 2019-06-27 21:45:27 -06:00
README.md Initial commit 2019-06-27 21:45:27 -06:00
csv.go Initial commit 2019-06-27 21:45:27 -06:00

README.md

go-csv-to-json

Read in a full-spec CSV (y'know, the nasty kind), get back JSON.

  • escaped quotes
  • newlines
  • a variable number of columns

(all standard Go csv parser stuff)

Usage

git clone https://git.coolaj86.com/coolaj86/go-csv-to-json.git
pushd go-csv-to-json/
go run csv.go /path/to/import.csv /path/to/export.json

TODO

Web API