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 <alex.fl...@gmail.com> 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 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-nil pointer was not a zero value. > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.