I came across this project while looking for a simple way to compare two instances of the same struct. I currently define type Delta struct{ old, new interface{} } and then use a map of that where the member name is the key. Obviously can't do deep compares with that, but it works well from a programmatic standpoint.
I'm wondering if you considered any other methods for handling the paths? Would you be interested in having any alternative representations in this project?
I came across this project while looking for a simple way to compare two instances of the same struct. I currently define
type Delta struct{ old, new interface{} }and then use a map of that where the member name is the key. Obviously can't do deep compares with that, but it works well from a programmatic standpoint.I'm wondering if you considered any other methods for handling the paths? Would you be interested in having any alternative representations in this project?