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 返回序列化器名称
Click to show internal directories.
Click to hide internal directories.