json

package
v0.0.0-...-8845ca5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

func MarshalString

func MarshalString(v any) (string, error)

func MarshalToFile

func MarshalToFile(filename string, v any) error

func MustMarshal

func MustMarshal(v any) []byte

func MustMarshalString

func MustMarshalString(v any) string

func MustMarshalToFile

func MustMarshalToFile(filename string, v any)

func MustUnmarshalFromFile

func MustUnmarshalFromFile(filename string, v any)

func NewDecoder

func NewDecoder(r io.Reader) sonic.Decoder

func NewEncoder

func NewEncoder(w io.Writer) sonic.Encoder

func Unmarshal

func Unmarshal(data []byte, v any) error

func UnmarshalFromFile

func UnmarshalFromFile(filename string, v any) error

func UnmarshalString

func UnmarshalString(data string, v any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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