On Tue, Feb 28, 2017 at 1:04 AM, Rob Pike <[email protected]> wrote:
> For a single object, not a struct, it still gets sent as a struct with one
> field. The 0 is the marker after the last (only) field is sent.

Thanks; that makes sense. So it fits in the grammar description by
virtue of being part of "encoding of a value", but I don't see
anywhere that actually says that values are always encoded as structs.
This might be a good place to improve the documentation a bit. Unless
someone points me at something obvious I'm missing, I'll file an issue
to improve the docs, and possibly a CL.

Thanks again.

—Sam

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to