fastjson

package
v0.0.0-...-ecf5411 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenIntoFile

func GenIntoFile(t reflect.Type, pack, file string) error

func GenWrappers

func GenWrappers(t reflect.Type, pack string) string

func ReleaseJsonWriter

func ReleaseJsonWriter(jw *JsonWriter)

Types

type Decoder

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

10019

func (*Decoder) Decode

func (d *Decoder) Decode(v interface{})

type JsonMarshal

type JsonMarshal interface {
	Json(jw *JsonWriter)
}

type JsonWriter

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

func AcquireJsonWriter

func AcquireJsonWriter() *JsonWriter

func NewJsonWriter

func NewJsonWriter() *JsonWriter

func (*JsonWriter) Bytes

func (jw *JsonWriter) Bytes() []byte

func (*JsonWriter) String

func (jw *JsonWriter) String() string

func (*JsonWriter) WriteArrayLeft

func (jw *JsonWriter) WriteArrayLeft(key string)

func (*JsonWriter) WriteArrayRight

func (jw *JsonWriter) WriteArrayRight()

func (*JsonWriter) WriteBool

func (jw *JsonWriter) WriteBool(key string, val bool)

func (*JsonWriter) WriteByte

func (jw *JsonWriter) WriteByte(b byte)

func (*JsonWriter) WriteFloat

func (jw *JsonWriter) WriteFloat(key string, val float64)

func (*JsonWriter) WriteInt

func (jw *JsonWriter) WriteInt(key string, val int)

func (*JsonWriter) WriteKey

func (jw *JsonWriter) WriteKey(key string)

func (*JsonWriter) WriteObjectLeft

func (jw *JsonWriter) WriteObjectLeft(key string)

func (*JsonWriter) WriteObjectRight

func (jw *JsonWriter) WriteObjectRight()

func (*JsonWriter) WriteObjectStart

func (jw *JsonWriter) WriteObjectStart()

func (*JsonWriter) WriteSep

func (jw *JsonWriter) WriteSep()

func (*JsonWriter) WriteString

func (jw *JsonWriter) WriteString(key string, val string)

func (*JsonWriter) WriteVal

func (jw *JsonWriter) WriteVal(val interface{})

type Struct

type Struct struct {
}

type StructField

type StructField struct {
	Key  string
	Type string
}

Jump to

Keyboard shortcuts

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