We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/14693 mentions this issue.
Sorry, something went wrong.
1216e18
Yes, this explanation is good and resolves the issue for me.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: