xjson

package
v0.0.0-...-7441410 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal 使用默认配置将对象编码为 JSON 字节串。

func MarshalToString

func MarshalToString(v any) (string, error)

MarshalToString 使用默认配置将对象编码为 JSON 字符串。

func Unmarshal

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

Unmarshal 使用默认配置将 JSON 字节串解码到对象。

func UnmarshalFromString

func UnmarshalFromString(str string, v any) error

UnmarshalFromString 使用默认配置将 JSON 字符串解码到对象。

Types

type RawMessage

type RawMessage = jsoniter.RawMessage

RawMessage 是对 json-iterator 的 RawMessage 的简单别名, 用于延迟解析或直接传递 JSON 字段。

Jump to

Keyboard shortcuts

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