Documentation
¶
Overview ¶
Package ndjson implements newline-delimited JSON as a codec.Codec. Each record is a JSON value followed by a single '\n' — the format is intentionally line-oriented so that partial reads remain parseable. The codec accepts slice values: Marshal emits one record per element, Unmarshal splits on '\n' and decodes each non-empty line into a new slice element.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //: register the singleton and expose it as a typed package var. Codec codec.Codec = codec.Register(&ndjsonCodec{}) )
Package-level state: the codec singleton plus the hoisted MIME / extension tables (hoisted).
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.