Slide 44
Slide 44 text
type Wrapper struct{}
func (w Wrapper) Reset() {}
func (w Wrapper) String() string { return "" }
func (w Wrapper) ProtoMessage() {}
sf, _ := m.ConvertStruct(u.Underlying())
wsf := reflect.StructField{
Name: "Wrapper",
Type: reflect.TypeOf(Wrapper{}),
Anonymous: true,
Index: []int{0},
}
sf = append([]reflect.StructField{wsf}, sf[0])
rt := reflect.StructOf(sf)