by **jbvanpuyvelde**: <pre>It's not written on the page <a href="http://golang.org/pkg/encoding/gob/">http://golang.org/pkg/encoding/gob/</a> that the unexported fields of a structure will not be serialized. I took me some time to find the thread [1] where it is explained (it is also very quickly said in the json package doc). [1] <a href="https://groups.google.com/d/topic/golang-nuts/0jXG-5Y6VJA/discussion">https://groups.google.com/d/topic/golang-nuts/0jXG-5Y6VJA/discussion</a></pre>