encoding/gob: expose encode/decode example

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/26220045