Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept comparison function to contains/difference/etc. #140

Open
adammw opened this issue Dec 23, 2021 · 0 comments
Open

Accept comparison function to contains/difference/etc. #140

adammw opened this issue Dec 23, 2021 · 0 comments

Comments

@adammw
Copy link
Contributor

adammw commented Dec 23, 2021

Under the hood, funk requires the same types so that it can call reflect.DeepEqual to check for equality. It would be nice to be able to pass in a custom comparison method such that it could for example know how to compare different types, or know which fields to ignore when making a comparison for certain types.

@thoas thoas changed the title [feature request] Accept comparison function to contains/difference/etc. Accept comparison function to contains/difference/etc. Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants