json

package
v0.0.0-...-397cff2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoWriter jsonError = iota
	ErrUnexpectedArrayEnd
	ErrUnexpectedObjectEnd
	ErrNotAnObject
	ErrWrongField
	ErrObjectTooBig
	ErrArrayTooBig
	ErrMapTooBig
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func (*Reader) ByteString

func (r *Reader) ByteString() ([]byte, error)

func (*Reader) Bytes

func (r *Reader) Bytes() ([]byte, error)

func (*Reader) EndArray

func (r *Reader) EndArray() error

func (*Reader) EndMap

func (r *Reader) EndMap() error

func (*Reader) EndObject

func (r *Reader) EndObject() error

func (*Reader) Float32

func (r *Reader) Float32() (float32, error)

func (*Reader) Float64

func (r *Reader) Float64() (float64, error)

func (*Reader) HaveNext

func (r *Reader) HaveNext() (bool, error)

func (*Reader) Int32

func (r *Reader) Int32() (int32, error)

func (*Reader) Int64

func (r *Reader) Int64() (int64, error)

func (*Reader) NextKey

func (r *Reader) NextKey() (string, error)

func (*Reader) Property

func (r *Reader) Property(name string) error

func (*Reader) SetReader

func (r *Reader) SetReader(reader io.Reader)

func (*Reader) StartArray

func (r *Reader) StartArray() (length int, err error)

func (*Reader) StartMap

func (r *Reader) StartMap() (length int, err error)

func (*Reader) StartObject

func (r *Reader) StartObject() error

func (*Reader) String

func (r *Reader) String() (string, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func (*Writer) ByteString

func (w *Writer) ByteString(value []byte) error

func (*Writer) Bytes

func (w *Writer) Bytes(value []byte) error

func (*Writer) EndArray

func (w *Writer) EndArray() error

func (*Writer) EndMap

func (w *Writer) EndMap() error

func (*Writer) EndObject

func (w *Writer) EndObject() error

func (*Writer) Float32

func (w *Writer) Float32(value float32, format byte, precision int) error

func (*Writer) Float64

func (w *Writer) Float64(value float64, format byte, precision int) error

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) Int32

func (w *Writer) Int32(value int32) error

func (*Writer) Int64

func (w *Writer) Int64(value int64) error

func (*Writer) NextKey

func (w *Writer) NextKey(key string) error

func (*Writer) Property

func (w *Writer) Property(name string) error

func (*Writer) SetWriter

func (w *Writer) SetWriter(writer io.Writer, bufferSize int)

func (*Writer) StartArray

func (w *Writer) StartArray(length int) error

func (*Writer) StartMap

func (w *Writer) StartMap(length int) error

func (*Writer) StartObject

func (w *Writer) StartObject() error

func (*Writer) String

func (w *Writer) String(value string) error

Jump to

Keyboard shortcuts

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