Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information
1 parent
ba04b21
commit decea91
Showing
3 changed files
with
206 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.