Join GitHub today
GitHub is where the world builds software
encoding/gob: no way to skip marshalling exported struct field, docs unclear that a struct must have minimum one exported field #19969
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Case 2 encodes/decode j.a which is not exported. This contradicts your quote from the document.
In Case 1 it is NOT encoding/decoding User.Name, User.Pass which I believe also contradicts the quote. In addition I believe User.List should be encoded even though it would be empty.