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

Closed
gopherbot opened this issue Dec 20, 2012 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by jbvanpuyvelde:

It's not written on the page http://golang.org/pkg/encoding/gob/ 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).

[1] https://groups.google.com/d/topic/golang-nuts/0jXG-5Y6VJA/discussion
@rsc
Copy link
Contributor

rsc commented Dec 22, 2012

Comment 1:

Owner changed to @rsc.

Status changed to Started.

@rsc
Copy link
Contributor

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
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants