Working as intended. The model is that if it's a zero, there's nothing to
send.
-rob
On Sat, Aug 6, 2016 at 8:08 AM, Alex Flint wrote:
> Is it intended that gob-encoding a pointer to an integer with value equal
> to zero decodes as a nil pointer? I was expecting to get back a non-nil
> pointer
Is it intended that gob-encoding a pointer to an integer with value equal
to zero decodes as a nil pointer? I was expecting to get back a non-nil
pointer to an integer with value zero.
https://play.golang.org/p/UUN0UFEeIN
I understand that gob omits zero values but my understanding was that a
non