package
1.1.0-alpha
Repository: https://github.com/go-spring/spring-stl.git
Documentation: pkg.go.dev

# Functions

Init 自定义 Marshal 和 Unmarshal 函数,为了防止在一个项目中存在多个 json 序列化框架,该函数只能在项目 main 函数执行前的 init 阶段设置一次。.
Marshal 序列化 json 数据。.
MarshalIndent 序列化 json 数据并对结果进行美化。.
ToString 将对象序列化为 Json 字符串,错误信息以字符串形式返回。.
Unmarshal 反序列化 json 对象。.

# Structs

An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.

# Type aliases

MarshalFunc 定义 Marshal 函数原型。.
UnmarshalFunc 定义 Unmarshal 函数原型。.