r3labs / diff

A library for diffing golang structures
Mozilla Public License 2.0
888 stars 80 forks source link

Support for adding equal values for a changelog #102

Open mdelapenya opened 1 year ago

mdelapenya commented 1 year ago

Hi :wave: ! I'd like to know if it would make sense to add a new type of changelog entry for equal values, so that it's possible to detect that two structs are almost equals and in which fields, simply getting the changelog entries for that new EQUALS type.

My use case is comparing two structs and detecting how much similar they are.

mdelapenya commented 1 year ago

BTW, I did not mention, but I'd be able to work on a PR :)

mdelapenya commented 1 year ago

@purehyperbole sorry to ping you directly 🙏 Do you think this issue is of value to the project?