json

package module
v0.0.0-...-6bde7cc Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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 JsonCodec

type JsonCodec struct {
}

func (JsonCodec) Marshal

func (j JsonCodec) Marshal(v interface{}) (data []byte, err error)

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

func (JsonCodec) String

func (j JsonCodec) String() string

编码器的名称

func (JsonCodec) Unmarshal

func (j JsonCodec) Unmarshal(data []byte, v interface{}) error

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

Jump to

Keyboard shortcuts

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