Well, I didn't point out the problem succinctly. And it's easy to work
around the problem by making the field a pointer. And the compiler does it
correctly otherwise someone else would have reported or fixed it already.
Sorry the compiler and standard library are creating so much work. It's
rea
First, sorry for the long text. If this subject is of interest, one may
want to skip to the code at the bottom.
It seems reflect.StructOf is not doing what the compiler does for first
field embedded base types with a pointer receiver method set.
reflect.StructOf can't do a lot of things but oth