You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... If a field has the zero value for its type (except for arrays; see above), it is omitted from the transmission. ...
It is working as intended/documented. (*string -> string, string == "" -> not encoded.)
gbbr
changed the title
Data missing while use encoding/gob encoding an empty *string
encoding/gob: data missing while encoding an empty *string
Oct 16, 2017
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8.3
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
https://play.golang.org/p/3akEQ76r55
What did you expect to see?
dest.B should be ""
What did you see instead?
nil
The text was updated successfully, but these errors were encountered: