json

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

@Author daixk 2025/11/27 20:57:00

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSerializer

type JSONSerializer struct{}

JSONSerializer implements a JSON serializer JSON 序列化器实现

func NewJSONSerializer

func NewJSONSerializer() *JSONSerializer

NewJSONSerializer creates a JSON serializer 创建 JSON 序列化器

func (*JSONSerializer) Decode

func (s *JSONSerializer) Decode(data []byte, v any) error

Decode deserializes JSON into a value 从 JSON 解码

func (*JSONSerializer) Encode

func (s *JSONSerializer) Encode(v any) ([]byte, error)

Encode serializes a value into JSON 编码为 JSON

func (*JSONSerializer) Name

func (s *JSONSerializer) Name() string

Name returns the serializer name 返回序列化器名称

Jump to

Keyboard shortcuts

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