Thanks for the reply.

Hopefully the doc can be changed to avoid confusion.

On Sunday, January 21, 2018 at 1:16:04 PM UTC+8, Ian Lance Taylor wrote:
>
> On Sat, Jan 20, 2018 at 8:43 PM, Glen Huang <hey...@gmail.com 
> <javascript:>> wrote: 
> > 
> > The doc for the method type in the reflect package 
> > (https://golang.org/pkg/reflect/#Method) seems to suggest that it's 
> possible 
> > to inspect a type's unexported methods: 
> > 
> >         // PkgPath is the package path that qualifies a lower case 
> > (unexported) 
> >         // method name. It is empty for upper case (exported) method 
> names. 
> >         // The combination of PkgPath and Name uniquely identifies a 
> method 
> >         // in a method set. 
> > 
> > But I tried a very simple example, and it seems that reflect doesn't see 
> > unexported methods at all (https://play.golang.org/p/W0vNVQYJgFO) 
> > 
> > I wonder if I missed something? 
>
> You haven't missed anything.  This is an area where the reflect 
> package has changed.  There is currently no way to examine unexported 
> methods. 
>
> Ian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to