refactor: replace json with json-iterator/go to improve performance

This commit is contained in:
debugtalk
2022-03-04 17:39:15 +08:00
parent b729b66be3
commit 7dd2ac9831
12 changed files with 37 additions and 13 deletions

14
internal/json/json.go Normal file
View File

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