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 a value hook func #183

Merged
merged 1 commit into from Nov 26, 2020
Merged

Add a value hook func #183

merged 1 commit into from Nov 26, 2020

Commits on Mar 28, 2020

  1. Add a value hook func

    This commit adds a third hook func type which has access to the
    reflect.Value representations of both the `from` and the `to`
    objects. This gives all the same power of the existing hook functions
    (types, kinds, and data can all be retrieved from values), but
    with the additional benefit of being able to modify the `to` object.
    
    This change is largely backwards compatible. The only change of the
    public API (other than adding a new hook type) is a change in the
    signature of `DecodeHookExec`.
    camdencheek committed Mar 28, 2020
    Copy the full SHA
    decea91 View commit details
    Browse the repository at this point in the history