Skip to content

Commit aa40c07

Browse files
authored
Update diff_struct.go (#77)
Enable customValueDiffers for structs in structs
1 parent b53a548 commit aa40c07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff_struct.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func (d *Differ) diffStruct(path []string, a, b reflect.Value) error {
7171
func (d *Differ) structValues(t string, path []string, a reflect.Value) error {
7272
var nd Differ
7373
nd.Filter = d.Filter
74+
nd.customValueDiffers = d.customValueDiffers
7475

7576
if t != CREATE && t != DELETE {
7677
return ErrInvalidChangeType

0 commit comments

Comments
 (0)