commit | 1778f50da3a14b310ad987dbbe4c3e2ea3872ff4 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Mon Feb 14 10:17:30 2011 -0800 |
committer | Rob Pike <r@golang.org> | Mon Feb 14 10:17:30 2011 -0800 |
tree | 2696924f3e60289d01aaa960178ccd6aee9b6965 | |
parent | 1723fbe13e9288f1dff1da90df6fd6922f941975 [diff] |
gob: decode into nil, this time for sure. Yesterday's change was too simple-minded and failed if an interface value was being discarded. We need to parse the data stream and remember any type information that arrives. Also fix a minor bug when ignoring an interface: toss only what we know about, not everything. R=rsc CC=golang-dev https://golang.org/cl/4179045