reflect: StructOf should support embedding types with non-exported methods
mdempsky opened this issue · 3 comments
mdempsky commented
There's this code in reflect/type.go:
if ift.nameOff(m.name).pkgPath() != "" {
// TODO(sbinet)
panic("reflect: embedded interface with unexported method(s) not implemented")
}
See also #5748.
rberenguel commented
ianlancetaylor commented
@rberenguel It would be great if you want to work on this, but unfortunately I think it will be pretty hard.
rberenguel commented
Thanks @ianlancetaylor a bad choice then for the first contribution. I'll keep looking!