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

Add IgnoreUnsetFields helper to cmpopts #53

Closed
wants to merge 1 commit into from
Closed

Commits on Nov 6, 2017

  1. Add IgnoreUnsetFields helper to cmpopts

    IgnoreUnsetFields is useful for performing the equivalent of a "partial"
    equality, where only fields based on some template struct are compared,
    any everything else is ignored.
    
    This is useful for forward-compatible comparison where the user wants
    to ensure struct fields added in the future do not get compared.
    dsnet committed Nov 6, 2017
    Copy the full SHA
    58b0750 View commit details
    Browse the repository at this point in the history