FYI, this looks very similar to this issue I filed a while back:
https://github.com/golang/go/issues/16978

On Tue, Feb 28, 2017 at 12:07 PM, Rob Pike <[email protected]> wrote:

> Please do.
>
> I was sure it was there somewhere but I couldn't find it. Check again
> (look internally as well) before proceeding.
>
> -rob
>
>
> On Tue, Feb 28, 2017 at 8:53 AM, Sam Whited <[email protected]> wrote:
>
>> 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.
>

-- 
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