Anonymous embedded structs aren't supported
stevvooe opened this issue · 2 comments
stevvooe commented
It seems when using anonymous embedded structs, field values are not transmitted. For example, given the following types:
type B struct {
I int
}
type A struct {
B
J int
}
If A
is sent on a channel, values for the anonymously embedded B
struct are not sent.
Shelnutt2 commented
Is this still an issue? I went to add a unit test to track this down and it appears to work.
dmcgowan commented
I do expect this to work as well with the latest encoding change. I would try to make this test work with the spdy
package since that will hit the encoder. The in mem should not be a problem since it is only passing along a reference.