-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Description
What is considered comparable in Go?
Structs
if all of their fields are also comparable independently
Would be great to be able to pass a key (or function) to for struct comparison instead of relying on complete field equality.
Particularly useful when comparing structs with incomplete data (e.g. from an API) with complete data (e.g. from DB).
yuki2006 and xiaoshuwei
Metadata
Metadata
Assignees
Labels
No labels