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

Remove raw interface #482

Merged
merged 1 commit into from
Jan 12, 2018
Merged

Remove raw interface #482

merged 1 commit into from
Jan 12, 2018

Conversation

dsnet
Copy link
Member

@dsnet dsnet commented Jan 11, 2018

There is an internal type to Google called RawMessage that is similar
to json.RawMessage. Since there is no proper proto reflection API,
we special-cased the Bytes method of RawMessage to access the raw bytes.
This is a gross hack since Bytes() []byte is such a common method signature.

Remove this hack.

Fixes #311

There is an internal type to Google called RawMessage that is similar
to json.RawMessage. Since there is no proper proto reflection API,
we special-cased the Bytes method of RawMessage to access the raw bytes.
This is a gross hack since Bytes() []byte is such a common method signature.

Remove this hack.

Fixes #311
@dsnet dsnet requested a review from neild January 11, 2018 01:04
@dsnet
Copy link
Member Author

dsnet commented Jan 11, 2018

\cc @tamird

@dsnet dsnet merged commit 7d76aa1 into dev Jan 12, 2018
@dsnet dsnet deleted the nuke-raw branch January 13, 2018 19:58
@golang golang locked and limited conversation to collaborators Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants