I was looking at the documentation for package "reflect":

https://golang.org/pkg/reflect/

At the top of the page is an index showing everything in the package.  This 
includes information about reflect.Type:

type Type <https://golang.org/pkg/reflect/#Type>    func ArrayOf(count int, 
elem Type) Type <https://golang.org/pkg/reflect/#ArrayOf>    func 
ChanOf(dir ChanDir, t Type) Type <https://golang.org/pkg/reflect/#ChanOf>  
  func FuncOf(in, out []Type, variadic bool) Type 
<https://golang.org/pkg/reflect/#FuncOf>    func MapOf(key, elem Type) Type 
<https://golang.org/pkg/reflect/#MapOf>    func PtrTo(t Type) Type 
<https://golang.org/pkg/reflect/#PtrTo>    func SliceOf(t Type) Type 
<https://golang.org/pkg/reflect/#SliceOf>    func StructOf(fields 
[]StructField) Type <https://golang.org/pkg/reflect/#StructOf>    func 
TypeOf(i interface{}) Type <https://golang.org/pkg/reflect/#TypeOf>

I was surprised that reflect.Type doesn't have any methods!  Only functions 
that return reflect.Type, no functions that take reflect.Type as a 
receiver.  That's weird.  But then I saw this, later in the documentation:

type Type interface {

        // Align returns the alignment in bytes of a value of
        // this type when allocated in memory.
        Align() int <https://golang.org/pkg/builtin/#int>

        // FieldAlign returns the alignment in bytes of a value of
        // this type when used as a field in a struct.
        FieldAlign() int <https://golang.org/pkg/builtin/#int>

        ... lots more methods ...


So my question is: what does it mean that all the methods are missing from 
the index?  Is this just a bug in the documentation generator?  Is this a 
situation where these methods are tentative, as in, not nailed down yet? 
 What's up here?


-- 
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