Skip to content

Commit 5999f2f

Browse files
author
luotao.by24
committed
fix: tagName go into new slice diff instance
1 parent e2707de commit 5999f2f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

diff_slice.go

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func (st *sliceTracker) has(s, v reflect.Value, d *Differ) bool {
102102
x := s.Index(i)
103103

104104
var nd Differ
105+
nd.TagName = d.TagName
105106
nd.Filter = d.Filter
106107
nd.customValueDiffers = d.customValueDiffers
107108

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/r3labs/diff/v3
1+
module github.com/caterpillar/diff
22

33
go 1.13
44

0 commit comments

Comments
 (0)