json

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal   = json.Marshal
	Unmarshal = json.Unmarshal

	MarshalIndent = json.MarshalIndent

	NewEncoder = json.NewEncoder
	NewDecoder = json.NewDecoder
)

Functions

func MustMarshal

func MustMarshal(v any) []byte

func MustMarshalIndent

func MustMarshalIndent(v any) []byte

func MustMarshalString

func MustMarshalString(v any) string

func MustUnmarshalTo

func MustUnmarshalTo[T any](bs []byte) (m T)

func ReMustUnmarshalTo

func ReMustUnmarshalTo[T any](v any) (m T)

func UnmarshalTo

func UnmarshalTo[T any](bs []byte) (m T, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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