json

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

Marshal is a wrapper of sonic.Marshal. Marshal 是 sonic.Marshal 的包装器。

func MarshalString

func MarshalString(v any) (string, error)

MarshalString is a wrapper of sonic.MarshalString. MarshalString 是 sonic.MarshalString 的包装器。

func Unmarshal

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

Unmarshal is a wrapper of sonic.Unmarshal. Unmarshal 是 sonic.Unmarshal 的包装器。

func UnmarshalString

func UnmarshalString(data string, v any) error

UnmarshalString is a wrapper of sonic.UnmarshalString. UnmarshalString 是 sonic.UnmarshalString 的包装器。

Types

This section is empty.

Jump to

Keyboard shortcuts

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