json

package
v0.21.16 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalIndent added in v0.21.14

func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)

func MarshalToString added in v0.21.14

func MarshalToString(v interface{}) (string, error)

func NewDecoder added in v0.21.14

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

func NewEncoder added in v0.21.14

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

func Unmarshal

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

func UnmarshalFromString added in v0.21.14

func UnmarshalFromString(bs string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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