]> Cypherpunks repositories - gostls13.git/commit
gob: report an error when encoding a non-empty struct with
authorRob Pike <r@golang.org>
Sat, 22 Jan 2011 08:10:11 +0000 (00:10 -0800)
committerRob Pike <r@golang.org>
Sat, 22 Jan 2011 08:10:11 +0000 (00:10 -0800)
commita0a4e85ad6495b14fe944e82af58aed8e8dc99c2
tree0cf23b339f794b2cf1046689e824e3fb438ad7c8
parentf0b8f84d3735f94724e4255dd074db18b807f897
gob: report an error when encoding a non-empty struct with
no public fields.
Fix a couple of tests caught out by this change.

R=rsc
CC=golang-dev
https://golang.org/cl/4044043
src/pkg/gob/codec_test.go
src/pkg/gob/encode.go
src/pkg/gob/encoder_test.go