gob encode/decode errors

641 views
Skip to first unread message

Matt

unread,
Jul 26, 2011, 12:29:00 PM7/26/11
to golang-nuts
When I gob decode I get no warnings, but on loading the file back in I
see

"DecodeValue of unassignable value" and "attempt to decode into a non-
pointer" messages.

Can anyone explain these, or give me a good strategy to debug (I added
debug.go to the gob Makefile but it generates a lot of output).

Thanks,

--Matt H

roger peppe

unread,
Jul 26, 2011, 12:31:16 PM7/26/11
to Matt, golang-nuts
have you got a small program that demonstrates the issue?

(most likely cause: you're not passing a pointer to Decode)

Reply all
Reply to author
Forward
0 new messages