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: decode map not eqaul encode value #20449
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Hello there @niubaoshu, is the bug you are reporting that
If so, my personal opinion is that that would be unexpected unless you have conflicting keys(in which that's implicit with a map for clashing keys); decoding values into a receiver is setting them in the receiver, and I don't see any promises of the proposed behavior in the encoding/gob docs