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

Allow ignoring fields using struct tag #38

Merged
merged 1 commit into from
Sep 15, 2019
Merged

Conversation

flga
Copy link
Contributor

@flga flga commented Sep 15, 2019

This PR introduces the ability to tag struct fields and mark them as ignored.

This is useful when the user wants more fine-grained control over how to structs are compared, allowing them to, for example, compare all unexported fields except for those that are tagged with -.

It also opens up the possibility to customize comparison on a per field basis.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5b5646c on flga:master into 597fd85 on go-test:master.

@daniel-nichter daniel-nichter merged commit 6ff9f72 into go-test:master Sep 15, 2019
@daniel-nichter
Copy link
Member

Excellent, thanks!

@daniel-nichter
Copy link
Member

Released as v1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants