We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a66f27 commit 3f92bd4Copy full SHA for 3f92bd4
util.go
@@ -132,7 +132,7 @@ func isEqual(x, y any) bool {
132
case reflect.Slice:
133
return isSliceEqual(v1, v2)
134
default:
135
- return x == y
+ return v1.Interface() == v2.Interface()
136
}
137
138
@@ -193,7 +193,7 @@ func isMapHasValue(m, v any) bool {
193
194
for iter.Next() {
195
mvv := iter.Value()
196
- if isEqual(mvv, vv) {
+ if isEqual(mvv, vv.Convert(mvv.Type())) {
197
return true
198
199
0 commit comments