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: panic: "unknown type in isZero" on unexported interface with custom en/decoder #7741

klauspost opened this issue Apr 9, 2014 · 4 comments


Copy link

@klauspost klauspost commented Apr 9, 2014

>What does 'go version' print?
go version go1.2.1 windows/amd64

>What steps reproduce the problem?
>If possible, include a link to a program on


>What happened?
Go panics: "panic: unknown type in isZero main.AnInterface"

>What should have happened instead?
Gob encoding should have proceeded.

>Please provide any additional information below.
This seems to make it impossible to have custom en/decoders on structs that contain an
Copy link

@ianlancetaylor ianlancetaylor commented Apr 9, 2014

Comment 1:

Labels changed: added repo-main, release-go1.3maybe.

Copy link

@ja30278 ja30278 commented Apr 26, 2014

Comment 2:

Proposed fix in
Copy link

@gopherbot gopherbot commented Apr 26, 2014

Comment 3:

CL mentions this issue.
Copy link

@robpike robpike commented Apr 26, 2014

Comment 4:

This issue was closed by revision 7faf72b.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@rsc rsc removed the release-go1.3maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 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
6 participants
You can’t perform that action at this time.