Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONArrayStream ¶
type JSONArrayStream struct {
// contains filtered or unexported fields
}
A JSONArrayStream represents a streaming array of JSON objects.
func NewJSONArrayStream ¶
func NewJSONArrayStream(dst io.Writer) *JSONArrayStream
NewJSONArrayStream creates a new JSONArrayStream.
func (*JSONArrayStream) Close ¶
func (stream *JSONArrayStream) Close() error
Close writes the ']' and flushes the stream.
func (*JSONArrayStream) Encode ¶
func (stream *JSONArrayStream) Encode(obj any) error
Encode adds an object to the stream.
Click to show internal directories.
Click to hide internal directories.