jsonutil

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL