Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
encoding/gob: merges maps instead of replacing #11117
go version: Whatever is on play.golang.org.
Operating system: Linux
What I did: used gob.Decoder.Decode to an already existing map. See: http://play.golang.org/p/yjPCjdHp93
What I expected: the map passed to Decode will be entirely overwritten by the gobbed input map.
What I got: the map passed to Decode got merged with the gobbed input map.
At the very least, the decoder merging instead of replacing maps should be documented.