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.
It would be nice if the encoding/gob package had some more examples as its usage is not completely clear especially for new users. See eg: https://groups.google.com/d/topic/golang-nuts/fRixmVKLddY/discussion Some specific things which I think are not obvious enough include a) when/where Register( ) should be called, b) What the appropriate use of RegisterName() is, c) How to implement GobEncoder/GobDecoder. Also a package-level example of how it all fits together would also be helpful.
As you say, probably too late for 1.1, but I would second the request. For the time being, I found http://stackoverflow.com/questions/12854125/go-how-do-i-dump-the-struct-into-the-byte-array-without-reflection helpful.