Documentation ¶
Index ¶
- Constants
- type Reader
- func (r *Reader) ByteString() ([]byte, error)
- func (r *Reader) Bytes() ([]byte, error)
- func (r *Reader) EndArray() error
- func (r *Reader) EndMap() error
- func (r *Reader) EndObject() error
- func (r *Reader) Float32() (float32, error)
- func (r *Reader) Float64() (float64, error)
- func (r *Reader) HaveNext() (bool, error)
- func (r *Reader) Int32() (int32, error)
- func (r *Reader) Int64() (int64, error)
- func (r *Reader) NextKey() (string, error)
- func (r *Reader) Property(name string) error
- func (r *Reader) SetReader(reader io.Reader)
- func (r *Reader) StartArray() (length int, err error)
- func (r *Reader) StartMap() (length int, err error)
- func (r *Reader) StartObject() error
- func (r *Reader) String() (string, error)
- type Writer
- func (w *Writer) ByteString(value []byte) error
- func (w *Writer) Bytes(value []byte) error
- func (w *Writer) EndArray() error
- func (w *Writer) EndMap() error
- func (w *Writer) EndObject() error
- func (w *Writer) Float32(value float32, format byte, precision int) error
- func (w *Writer) Float64(value float64, format byte, precision int) error
- func (w *Writer) Flush() error
- func (w *Writer) Int32(value int32) error
- func (w *Writer) Int64(value int64) error
- func (w *Writer) NextKey(key string) error
- func (w *Writer) Property(name string) error
- func (w *Writer) SetWriter(writer io.Writer, bufferSize int)
- func (w *Writer) StartArray(length int) error
- func (w *Writer) StartMap(length int) error
- func (w *Writer) StartObject() error
- func (w *Writer) String(value string) error
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 (*Reader) StartArray ¶
func (*Reader) StartObject ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) ByteString ¶
func (*Writer) StartArray ¶
func (*Writer) StartObject ¶
Click to show internal directories.
Click to hide internal directories.