From 5ecba0c8fd4e598978a730fabac2b0e86931b0c4 Mon Sep 17 00:00:00 2001 From: "luotao.by24" Date: Tue, 5 Nov 2024 18:42:46 +0800 Subject: [PATCH] fix: tagName go into new slice diff instance --- diff_slice.go | 1 + 1 file changed, 1 insertion(+) diff --git a/diff_slice.go b/diff_slice.go index 3fd281b..c7d854e 100644 --- a/diff_slice.go +++ b/diff_slice.go @@ -102,6 +102,7 @@ func (st *sliceTracker) has(s, v reflect.Value, d *Differ) bool { x := s.Index(i) var nd Differ + nd.TagName = d.TagName nd.Filter = d.Filter nd.customValueDiffers = d.customValueDiffers