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: failing to encode/decode []string{} #1278

gopherbot opened this issue Nov 16, 2010 · 4 comments

encoding/gob: failing to encode/decode []string{} #1278

gopherbot opened this issue Nov 16, 2010 · 4 comments


Copy link

@gopherbot gopherbot commented Nov 16, 2010

by karatepekka:

What steps will reproduce the problem?
1. gob.Encode a []string{}
2. gob.Decode it

What is the expected output?

What do you see instead?
Decode: EOF

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?
Mac OS X 10.6.5

Which revision are you using?  (hg identify)
03404c0155f6+ tip

Please provide any additional information below.
See the attached file.


  1. gobtest.go (367 bytes)
Copy link

@gopherbot gopherbot commented Nov 16, 2010

Comment 1 by karatepekka:

This issue renders the RPC package (with gob codec) nearly impossible to use
in certain cases.
Copy link

@rsc rsc commented Nov 16, 2010

Comment 2:

workaround: rpc/jsonrpc works
Copy link

@adg adg commented Nov 22, 2010

Comment 3:

Owner changed to

Status changed to Accepted.

Copy link

@robpike robpike commented Dec 9, 2010

Comment 4:

This issue was closed by revision b7c7311.

Status changed to Fixed.

@gopherbot gopherbot added fixed labels Dec 9, 2010
@mikioh mikioh changed the title gob: failing to encode/decode []string{} encoding/gob: failing to encode/decode []string{} Feb 26, 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
4 participants
You can’t perform that action at this time.