3 ms·
It's good that someone gave this format a name. Although it's not called anything special, but Go can read this format easily. See the Decoder example [1]. If
by skybrian 11y ago
It's good that someone gave this format a name. Although it's not called anything special, but Go can read this format easily. See the Decoder example [1].
If you don't actually need a stream, I think it's a bit nicer to write a special header at the beginning and make the whole file a single JSON object:
{"header": {"title": "An example", ...},
"rows": [
["row1"],
...
["rowN"]
]}
[1] https://golang.org/pkg/encoding/json/#example_Decoder https://golang.org/pkg/encoding/json/#example_Decoder