zson

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 1 Imported by: 1

README

ZxwyProject/zson

简介 Introduction:

  • 一个兼容 Gin 标准 的 json 库 切换工具
  • A json library switching tool compatible with Gin

使用 Usage:

  • 下载 Installation: go get -u github.com/ZxwyProject/zson
  • 构建 Build: go build -tags "go_json" .

注意 Note:

  • 使用 sonic 时记得额外添加 avx tag
  • Use sonic Remember to add the avx tag

Documentation

Overview

使用第三方JSON库代替标准库

标签 Tags:

"go_json":  `github.com/goccy/go-json`
"jsoniter": `github.com/json-iterator/go`
"sonic avx":`github.com/bytedance/sonic`

Index

Constants

This section is empty.

Variables

View Source
var (
	// Marshal returns the JSON encoding of v.
	Marshal = json.Marshal
	// Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.
	Unmarshal = json.Unmarshal
	// MarshalIndent is like Marshal but applies Indent to format the output.
	MarshalIndent = json.MarshalIndent
	// NewDecoder returns a new decoder that reads from r.
	NewDecoder = json.NewDecoder
	// NewEncoder returns a new encoder that writes to w.
	NewEncoder = json.NewEncoder
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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