1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00

json相关

This commit is contained in:
2022-03-27 10:21:16 +08:00
parent 12460b06ad
commit 22f41aeeeb
4 changed files with 220 additions and 0 deletions

15
json/jsoniter.go Normal file
View File

@ -0,0 +1,15 @@
//go:build jsoniter
// +build jsoniter
package json
import jsoniter "github.com/json-iterator/go"
var (
json = jsoniter.ConfigCompatibleWithStandardLibrary
Marshal = json.Marshal
Unmarshal = json.Unmarshal
MarshalIndent = json.MarshalIndent
NewDecoder = json.NewDecoder
NewEncoder = json.NewEncoder
)