json

package
v9.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 3 Imported by: 0

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 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