-
Notifications
You must be signed in to change notification settings - Fork 212
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
feat(unmarshaler): add support for fields to unmarshal themselves #921
Conversation
Thank you for the pull request! At the moment I think this interface should live in I'm not comfortable bringing in a partial feature with a ~4-5% impact on speed. I'd rather see this behavior as opt-in until it is fully implemented and the overall performance impact is close to <1% when not using the interface. Maybe an |
Thanks for the feedback. I will try to scratch something up, along these lines. In the meantime I will mark this as draft |
Re: making the behavior opt-in:
As of #923 I've added a precedent to put knobs that should not be considered stable as part of the public Lines 95 to 97 in 2e087bd
I suspect you would be facing similar issues I did trying to create a |
any progress on this? |
I made a PR continues work on this. Addressed the concerns about using |
Closing because #940 has been merged. Thank you for your help! |
This adds the
Unmarshaler
interface to the v2 package. This way types that implement this interface can define the way they are unmarshalled.This is a first attempt to fix #873