File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ module github.com/jmespath-community/go-jmespath
3
3
go 1.18
4
4
5
5
require (
6
+ github.com/google/go-cmp v0.5.8
6
7
github.com/spf13/cobra v1.8.0
7
8
github.com/stretchr/testify v1.9.0
8
9
golang.org/x/exp v0.0.0-20230314191032-db074128a8ec
Original file line number Diff line number Diff line change 1
1
github.com/cpuguy83/go-md2man/v2 v2.0.3 /go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o =
2
2
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
3
3
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4
+ github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg =
5
+ github.com/google/go-cmp v0.5.8 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
4
6
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8 =
5
7
github.com/inconshreveable/mousetrap v1.1.0 /go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw =
6
8
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
Original file line number Diff line number Diff line change 5
5
"math"
6
6
"reflect"
7
7
8
+ "github.com/google/go-cmp/cmp"
8
9
"golang.org/x/exp/constraints"
9
10
)
10
11
@@ -51,7 +52,8 @@ func IsFalse(value interface{}) bool {
51
52
// It will take two arbitrary objects and recursively determine
52
53
// if they are equal.
53
54
func ObjsEqual (left interface {}, right interface {}) bool {
54
- return reflect .DeepEqual (left , right )
55
+ return cmp .Equal (left , right )
56
+ // return reflect.DeepEqual(left, right)
55
57
}
56
58
57
59
// SliceParam refers to a single part of a slice.
You can’t perform that action at this time.
0 commit comments