json

package module
v0.0.0-...-e7289c0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
}

func (*Codec) MIMEType

func (b *Codec) MIMEType() string

func (*Codec) Marshal

func (j *Codec) Marshal(v any) (data []byte, err error)

将结构体编码为JSON的字节数组

func (*Codec) Unmarshal

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

将JSON的字节数组解码为结构体

Jump to

Keyboard shortcuts

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