json

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal same as std json.Marshal, but more efficient.

func NewDecoder

func NewDecoder(reader io.Reader) *jsoniter.Decoder

NewDecoder same as std json.NewDecoder.

func NewEncoder

func NewEncoder(writer io.Writer) *jsoniter.Encoder

NewEncoder same as std json.NewEncoder.

func Print

func Print(prefix string, v interface{})

Print print v in json format, prefix attached at head.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal same as std json.Unmarshal, but more efficient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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