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: does not properly encode functions #1339
Before filing a bug, please check whether it has been fixed since the latest release: run "hg pull -u" and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? 1. Use gob to save a function to a file 2. look at the size of the file 3. What is the expected output? A file larger than 0 bytes. What do you see instead? A file with 0 bytes. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Ubuntu 10.04 Which revision are you using? (hg identify) a544d1957b0f tip Please provide any additional information below. This bug was found when trying to make a server that could keep running if you want to recompile a function. It would use Inotify to look at .func files and load them when modified. But gob does not work, and I have been unable to find a workaround.