jsonencoder

package
v0.0.0-...-c713541 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsonencoder References encoding/json/tables.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

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

func New

func New(bufLen int) *Encoder

New return a Encoder.

func (*Encoder) AppendBool

func (enc *Encoder) AppendBool(v bool)

func (*Encoder) AppendBytes

func (enc *Encoder) AppendBytes(v []byte)

func (*Encoder) AppendFloat32

func (enc *Encoder) AppendFloat32(v float32)

func (*Encoder) AppendFloat64

func (enc *Encoder) AppendFloat64(v float64)

func (*Encoder) AppendInt32

func (enc *Encoder) AppendInt32(v int32)

func (*Encoder) AppendInt64

func (enc *Encoder) AppendInt64(v int64)

func (*Encoder) AppendInterface

func (enc *Encoder) AppendInterface(v interface{}) error

func (*Encoder) AppendListBegin

func (enc *Encoder) AppendListBegin()

func (*Encoder) AppendListEnd

func (enc *Encoder) AppendListEnd()

func (*Encoder) AppendNil

func (enc *Encoder) AppendNil()

func (*Encoder) AppendObjectBegin

func (enc *Encoder) AppendObjectBegin()

func (*Encoder) AppendObjectEnd

func (enc *Encoder) AppendObjectEnd()

func (*Encoder) AppendObjectKey

func (enc *Encoder) AppendObjectKey(k string)

func (*Encoder) AppendString

func (enc *Encoder) AppendString(v string)

func (*Encoder) AppendUint32

func (enc *Encoder) AppendUint32(v uint32)

func (*Encoder) AppendUint64

func (enc *Encoder) AppendUint64(v uint64)

func (*Encoder) Bytes

func (enc *Encoder) Bytes() []byte

Implements encoder.

func (*Encoder) Write

func (enc *Encoder) Write(p []byte) (n int, err error)

Impls interface io.Writer

Jump to

Keyboard shortcuts

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