-
Notifications
You must be signed in to change notification settings - Fork 18k
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
encoding/binary: Read and Write have asymmetric value for unexported struct fields #7482
Labels
Comments
rsc objected to not-panicking in during Read in message #3 on the linked change, and we don't want to change the output of Write, so I think this may be best addressed as a doc fix. That being said, I agree that Write should be skipping (or zeroing) unexported fields. Requiring developers to implement BinaryMarshaler and BinaryUnmarshaler to get symmetric behavior is unfortunate. |
Owner changed to @ianlancetaylor. Status changed to Started. |
CL https://golang.org/cl/95160043 mentions this issue. |
This issue was closed by revision c00804c. Status changed to Fixed. |
Issue #8315 has been merged into this issue. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: