Re: [go-nuts] no returned name or package path from reflect.Type?

2019-11-22 Thread Dan Kortschak
Thanks. That continues to trip me up. On Fri, 2019-11-22 at 17:01 -0800, Ian Lance Taylor wrote: > On Fri, Nov 22, 2019 at 1:06 PM Dan Kortschak > wrote: > > > > Are reflect.Type.PkgPath/Name supposed to return strings for > > defined > > types? There's nothing in the documentation that says

Re: [go-nuts] no returned name or package path from reflect.Type?

2019-11-22 Thread Dan Kortschak
Solved. Because they are not named types (being the pointer to the type). On Sat, 2019-11-23 at 07:36 +1030, Dan Kortschak wrote: > Are reflect.Type.PkgPath/Name supposed to return strings for defined > types? There's nothing in the documentation that says they don't. > > But

Re: [go-nuts] no returned name or package path from reflect.Type?

2019-11-22 Thread Ian Lance Taylor
On Fri, Nov 22, 2019 at 1:06 PM Dan Kortschak wrote: > > Are reflect.Type.PkgPath/Name supposed to return strings for defined > types? There's nothing in the documentation that says they don't. > > But https://play.golang.org/p/8Jede-mimtA and > https://play.golang.org/p/LT5m6yz0P5Y don't show

[go-nuts] no returned name or package path from reflect.Type?

2019-11-22 Thread Dan Kortschak
Are reflect.Type.PkgPath/Name supposed to return strings for defined types? There's nothing in the documentation that says they don't. But https://play.golang.org/p/8Jede-mimtA and https://play.golang.org/p/LT5m6yz0P5Y don't show any output where I would expect them to. Dan -- You received