Documentation ¶
Overview ¶
Package json lines mimicks standard library json Encoder and Decoder, but to encode and decode one JSON per line.
Index ¶
Constants ¶
View Source
const ( // DefaultBufferSize is the default buffer size for decoding. It will // be used whenever the given reader is not buffered. DefaultBufferSize = 1024 * 1024 * 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder interface { // Decode decodes the next JSON line into the given value. Decode(interface{}) error }
Decoder decodes JSON lines.
func NewDecoder ¶
NewDecoder creates a new decoder with the given reader. If the given reader is not buffered, it will be wrapped with a *bufio.Reader.
Click to show internal directories.
Click to hide internal directories.