r3labs / diff

A library for diffing golang structures
Mozilla Public License 2.0
895 stars 84 forks source link

Bug: embeded structs diffs are not detected #99

Closed geritol closed 1 year ago

geritol commented 1 year ago

When embeding struct within struct, there are no diffs reported

Example reporduction: https://github.com/r3labs/diff/compare/master...geritol:diff:bug-reproduction

geritol commented 1 year ago

issue was that the field containing the struct was private. Diffing non struct private fields (tested int and string) works.