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: add examples #4925

Closed
kisielk opened this issue Feb 26, 2013 · 6 comments
Closed

encoding/gob: add examples #4925

kisielk opened this issue Feb 26, 2013 · 6 comments
Assignees
Milestone

Comments

@kisielk
Copy link
Contributor

@kisielk kisielk commented Feb 26, 2013

It would be nice if the encoding/gob package had some more examples as its usage is not
completely clear especially for new users. See eg:
https://groups.google.com/d/topic/golang-nuts/fRixmVKLddY/discussion

Some specific things which I think are not obvious enough include a) when/where
Register( ) should be called, b) What the appropriate use of RegisterName() is, c) How
to implement GobEncoder/GobDecoder.

Also a package-level example of how it all fits together would also be helpful.
@rsc
Copy link
Contributor

@rsc rsc commented Mar 12, 2013

Comment 1:

[The time for maybe has passed.]

Labels changed: removed go1.1maybe.

@btracey
Copy link
Contributor

@btracey btracey commented Apr 20, 2013

Comment 2:

As you say, probably too late for 1.1, but I would second the request. For the time
being, I found
http://stackoverflow.com/questions/12854125/go-how-do-i-dump-the-struct-into-the-byte-array-without-reflection
helpful.
@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented May 13, 2013

Comment 3:

Labels changed: removed priority-triage.

Owner changed to @robpike.

Status changed to Accepted.

@rsc
Copy link
Contributor

@rsc rsc commented Jul 30, 2013

Comment 4:

Labels changed: added go1.2maybe.

@rsc
Copy link
Contributor

@rsc rsc commented Sep 10, 2013

Comment 5:

Labels changed: added documentation.

@robpike
Copy link
Contributor

@robpike robpike commented Oct 8, 2013

Comment 6:

This issue was closed by revision daa61d1.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe 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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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