Gob does not encode pointers as different from values. The stream is a
stream of values. How many indirections it takes the values to come to
the stream is not recorded. A consequence of that, combined with not
sending zero values, is that empty strings and nil pointers to strings
are encoded the same. In fact they are not encoded at all.
-rob
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/fde8754f-f381-4d90-ab04-248f45e69f8dn%40googlegroups.com.