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

Suggest use of cmpopts.EquateErrors #234

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Suggest use of cmpopts.EquateErrors #234

merged 1 commit into from
Aug 18, 2020

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Aug 18, 2020

If cmp panics because it is trying to access an unexported field,
specially suggest the use of cmpopts.EquateErrors if the parent type
implements the error interface.

Fixes #233

If cmp panics because it is trying to access an unexported field,
specially suggest the use of cmpopts.EquateErrors if the parent type
implements the error interface.

Fixes #233
@dsnet dsnet requested a review from neild August 18, 2020 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggest cmpopts.EquateErrors in error comparison panic
2 participants