You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common() *rtype
uncommon() *uncommonType
}
Type is the representation of a Go type.
Not all methods apply to all kinds of types. Restrictions, if any, are noted in
the documentation for each method. Use the Kind method to find out the kind of
type before calling kind-specific methods. Calling a method inappropriate to the
kind of type causes a run-time panic.
func ArrayOf(count int, elem Type) Type
func ChanOf(dir ChanDir, t Type) Type
func FuncOf(in, out []Type, variadic bool) Type
func MapOf(key, elem Type) Type
func PtrTo(t Type) Type
func SliceOf(t Type) Type
func TypeOf(i interface{}) Type
There might be a missing blank line between the closing } and the doc comment. I'm on the fence about that. But there's definitely a missing blank line between the final line of the doc comment and the constructor list.
I wonder if the doc comment should be last, preceded by a blank line, and then it need not be indented:
$ go doc reflect.Type
...
common() *rtype
uncommon() *uncommonType
}
func ArrayOf(count int, elem Type) Type
func ChanOf(dir ChanDir, t Type) Type
func FuncOf(in, out []Type, variadic bool) Type
func MapOf(key, elem Type) Type
func PtrTo(t Type) Type
func SliceOf(t Type) Type
func TypeOf(i interface{}) Type
Type is the representation of a Go type.
Not all methods apply to all kinds of types. Restrictions, if any, are noted in
the documentation for each method. Use the Kind method to find out the kind of
type before calling kind-specific methods. Calling a method inappropriate to the
kind of type causes a run-time panic.
The text was updated successfully, but these errors were encountered:
$ go doc reflect.Type
...
There might be a missing blank line between the closing } and the doc comment. I'm on the fence about that. But there's definitely a missing blank line between the final line of the doc comment and the constructor list.
I wonder if the doc comment should be last, preceded by a blank line, and then it need not be indented:
The text was updated successfully, but these errors were encountered: