json

package
v3.0.0-...-ecfceab Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 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) Decode

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

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

func (JsonCodec) Encode

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

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

func (JsonCodec) Type

func (j JsonCodec) Type() string

编码器的名称

Jump to

Keyboard shortcuts

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