json

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

Marshal serializes the given value to a JSON-encoded byte slice.

func MarshalString

func MarshalString(v any) (string, error)

MarshalString serializes the given value to a JSON-encoded string.

func Unmarshal

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

Unmarshal deserializes the given JSON-encoded byte slice into the provided value.

func UnmarshalString

func UnmarshalString(data string, v any) error

UnmarshalString deserializes the given JSON-encoded string into the provided value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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