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: panic encoding slice of nil valued *big.Ints #5305
What steps will reproduce the problem? Run Simply run on the site: http://play.golang.org/p/pz_E3cQ0_j What is the expected output? An encoded slice of nil values. What do you see instead? A panic :P Which compiler are you using (5g, 6g, 8g, gccgo)? Doesn't matter, crashes everywhere (see play link). Please provide any additional information below. If I encode a nil *big.Int, it works. If I encode a slice of *string-s, each nil, it works. If I encode a slice of *big.Int-s, each nil, it panics. The full discussion thread on golang-nuts: https://groups.google.com/group/golang-nuts/browse_thread/thread/ca0622c1c7f3242