Replace jsoniter with goccy/go-json

This commit is contained in:
2024-02-05 16:01:18 +00:00
parent 154233df14
commit 2f4c8cc5d8
5 changed files with 24 additions and 35 deletions
+1 -3
View File
@@ -3,13 +3,11 @@ package gql
import (
"fmt"
"github.com/goccy/go-json"
"github.com/gookit/goutil"
"github.com/gookit/goutil/strutil"
jsoniter "github.com/json-iterator/go"
)
var json = jsoniter.ConfigCompatibleWithStandardLibrary
func (b *BaseClient) convertToJSON(v any) []byte {
jsonData, err := json.Marshal(v)
if err != nil {