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: type not registered for interface: []string #2065

Closed
bpowers opened this issue Jul 12, 2011 · 2 comments
Closed

encoding/gob: type not registered for interface: []string #2065

bpowers opened this issue Jul 12, 2011 · 2 comments
Assignees

Comments

@bpowers
Copy link
Contributor

@bpowers bpowers commented Jul 12, 2011

What steps will reproduce the problem?
1. Create a map of type map[string]interface{}
2. Add a string or int slice as a value
3. Try to encode the map with the gob package

What is the expected output?
Encoded gob

What do you see instead?
gob: type not registered for interface: []string

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

Which operating system are you using?
Linux (Fedora 15)

Which revision are you using?  (hg identify)
16bfa562ba76 weekly/weekly.2011-07-07

Please provide any additional information below.
I've got a patch to fix this along with a unit test:
http://golang.org/cl/4672056/

I don't know why, but it doesn't appear to have gotten emailed out to the list when I
created the code review.  That might have been an error on my part however, it was my
first time creating a code review.
@griesemer
Copy link
Contributor

@griesemer griesemer commented Jul 13, 2011

Comment 1:

Owner changed to @robpike.

@robpike
Copy link
Contributor

@robpike robpike commented Jul 13, 2011

Comment 2:

This issue was closed by revision 050d839.

Status changed to Fixed.

@bpowers bpowers added fixed labels Jul 13, 2011
@mikioh mikioh changed the title gob: type not registered for interface: []string encoding/gob: type not registered for interface: []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.
Projects
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.