Re: [go-nuts] reflect Kind method

2018-12-24 Thread Mark Volkmann
Maybe it would be good to add an indication of just the basic type of each type in the index. For example, is the type a struct, interface, or something else? --- R. Mark Volkmann Object Computing, Inc. > On Dec 24, 2018, at 12:35 PM, Ian Lance Taylor wrote: > > On Mon, Dec 24, 2018 at 10:24

Re: [go-nuts] reflect Kind method

2018-12-24 Thread Ian Lance Taylor
On Mon, Dec 24, 2018 at 10:24 AM Mark Volkmann wrote: > > I guess my question boils down to what should be displayed in the index > section under a type. Currently it seems the answer is ... > If the type is a struct or interface, list all the package functions that > return that type. > If the

Re: [go-nuts] reflect Kind method

2018-12-24 Thread Mark Volkmann
I guess my question boils down to what should be displayed in the index section under a type. Currently it seems the answer is ... If the type is a struct or interface, list all the package functions that return that type. If the type is a struct, list all its methods. If the type is a struct, do

Re: [go-nuts] reflect Kind method

2018-12-24 Thread Ian Lance Taylor
On Mon, Dec 24, 2018 at 9:29 AM Mark Volkmann wrote: > > IIUC, Kind is a method of both Type and Value. But the index near the top of > https://golang.org/pkg/reflect/ only shows it as a method of Value. If you > click on "type Type" in the index, it scrolls to the description of that >

[go-nuts] reflect Kind method

2018-12-24 Thread Mark Volkmann
IIUC, Kind is a method of both Type and Value. But the index near the top of https://golang.org/pkg/reflect/ only shows it as a method of Value. If you click on "type Type" in the index, it scrolls to the description of that interface which includes the Kind method. Is it wrong that the index