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

encoding/gob: package documentation doesn't tell that only exported fields of a struct are encoded #4579

gopherbot opened this issue Dec 20, 2012 · 2 comments


Copy link

@gopherbot gopherbot commented Dec 20, 2012

by jbvanpuyvelde:

It's not written on the page that the unexported
fields of a structure will not be serialized.

I took me some time to find the thread [1] where it is explained (it is also very
quickly said in the json package doc).

Copy link

@rsc rsc commented Dec 22, 2012

Comment 1:

Owner changed to @rsc.

Status changed to Started.

Copy link

@rsc rsc commented Dec 22, 2012

Comment 2:

This issue was closed by revision d324c4a.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.