awalterschulze / goderive

Derives and generates mundane golang functions that you do not want to maintain yourself
Apache License 2.0
1.24k stars 43 forks source link

deriveEqual: Use Equal() instead of '==' if it is defined on T, even if the type canEqual #82

Closed sakeven closed 1 year ago

sakeven commented 1 year ago

If someone has defined the Equal() method on types which canEqual, they likely intend to use Equal() method instead of '==' when comparing two values.

image
awalterschulze commented 1 year ago

Fair, do you want to give this a go?

sakeven commented 1 year ago

Yes, I would be happy to.