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 marshaling and unmarshaling with io.Writer and io.Reader #43

Open
mfcochauxlaberge opened this issue Aug 7, 2019 · 0 comments
Open

Comments

@mfcochauxlaberge
Copy link
Owner

mfcochauxlaberge commented Aug 7, 2019

Currently, one needs the whole slice of bytes before unmarshaling and then marshaling returns a complete slice of bytes.

For performance reasons and to deal with a http.Request.Body in a way that makes more sense, there should be a way to unmarshal from an io.Reader. For similar reasons, there should be the option to marshal to an io.Writer.

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

No branches or pull requests

1 participant