Skip to content

Suggestion: Add comparator for structs #139

@ScreamingHawk

Description

@ScreamingHawk

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions