]> Cypherpunks repositories - gostls13.git/commit
gob: allow transmission of things other than structs at the top level.
authorRob Pike <r@golang.org>
Mon, 28 Jun 2010 21:09:47 +0000 (14:09 -0700)
committerRob Pike <r@golang.org>
Mon, 28 Jun 2010 21:09:47 +0000 (14:09 -0700)
commita26ab29ab8eaaa16964bd890ad46794ced0bcb57
tree0aa011a7b07c6e96dc7d62635d4527faebd1e4b9
parente0334ab798b573b0dc138d0d91c32a010e1490c0
gob: allow transmission of things other than structs at the top level.
also fix a bug handling nil maps: before, would needlessly send empty map

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