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: decoder always creates map even if encoder encodes a nil map (docs issue) #10908
The docs for
It is not mentioned explicitly, but what if the encoder encodes a nil map, will the decoder create a new map?
The test shows that it will, so the docs should probably be updated to drop the "Empty but non-nil maps