golang/go

reflect: StructOf should support embedding types with non-exported methods

Open

#20,015 opened on Apr 17, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixcompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide