From 586af64d70906863e1ac5d6881e27b921fba857c Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sat, 28 Sep 2024 17:00:53 +0100 Subject: [PATCH] Move towards go-reflect from goccy. --- go.mod | 1 + go.sum | 2 ++ helpers_test.go | 3 ++- logging/logger_test.go | 2 +- query_test.go | 3 ++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f4a12e0..fc9ec42 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.21 require ( github.com/avast/retry-go/v4 v4.6.0 github.com/goccy/go-json v0.10.3 + github.com/goccy/go-reflect v1.2.0 github.com/gookit/goutil v0.6.16 github.com/stretchr/testify v1.9.0 golang.org/x/net v0.29.0 diff --git a/go.sum b/go.sum index fdfbc42..ce459f1 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= +github.com/goccy/go-reflect v1.2.0 h1:O0T8rZCuNmGXewnATuKYnkL0xm6o8UNOJZd/gOkb9ms= +github.com/goccy/go-reflect v1.2.0/go.mod h1:n0oYZn8VcV2CkWTxi8B9QjkCoq6GTtCEdfmR66YhFtE= github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0= github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w= github.com/gookit/goutil v0.6.16 h1:9fRMCF4X9abdRD5+2HhBS/GwafjBlTUBjRtA5dgkvuw= diff --git a/helpers_test.go b/helpers_test.go index f86dbd2..f2e17b8 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -1,8 +1,9 @@ package gql import ( - "reflect" "testing" + + "github.com/goccy/go-reflect" ) func (suite *Tests) Test_searchForKeysInMapStringInterface() { diff --git a/logging/logger_test.go b/logging/logger_test.go index 92d04a9..5f3cab5 100644 --- a/logging/logger_test.go +++ b/logging/logger_test.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" "os" - "reflect" "testing" "time" "github.com/goccy/go-json" + "github.com/goccy/go-reflect" ) func captureStderr(f func()) string { diff --git a/query_test.go b/query_test.go index c39a7fa..35a44f3 100644 --- a/query_test.go +++ b/query_test.go @@ -1,8 +1,9 @@ package gql import ( - "reflect" "testing" + + "github.com/goccy/go-reflect" ) func (suite *Tests) TestBaseClient_convertToJSON() {