json

package
v10.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalToBuffer

func MarshalToBuffer(i interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(b []byte, i interface{}) error

func UnmarshalFromReader

func UnmarshalFromReader(r io.Reader, i interface{}) error

Types

type Marshaler

type Marshaler interface {
	MarshalJSON() ([]byte, error)
}

type RawMessage added in v10.2.0

type RawMessage = json.RawMessage

type Unmarshaler

type Unmarshaler interface {
	UnmarshalJSON([]byte) error
}

Jump to

Keyboard shortcuts

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