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
What version of Go are you using (go version)?
go version devel +111d590 Fri Jul 29 01:09:55 2016 +0000 linux/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/reus"
GORACE=""
GOROOT="/home/reus/go"
GOTOOLDIR="/home/reus/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build397350464=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
go doc reflect.Kind
What did you expect to see?
All Kind constants
What did you see instead?
const Invalid Kind = iota ...
I believe this is working as intended. The documentation says:
Doc prints the documentation comments associated with the item identified by its
arguments (a package, const, func, type, var, or method) followed by a one-line
summary of each of the first-level items "under" that item (package-level
declarations for a package, methods for a type, etc.).
Once, you see that there is a list of constants under Kind, you can list them by then calling go doc reflect.Invalid to see the full list of constants:
Yes, working as intended, although perhaps the behavior isn't ideal in some circumstances. The intent is to keep the output manageable at each step. The output from godoc reflect Kind
is in fact a good example why: It's far too much.
go version
)?go version devel +111d590 Fri Jul 29 01:09:55 2016 +0000 linux/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/reus"
GORACE=""
GOROOT="/home/reus/go"
GOTOOLDIR="/home/reus/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build397350464=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
go doc reflect.Kind
All Kind constants
const Invalid Kind = iota ...
It would be more helpful if all constants are listed, like on godoc.org https://godoc.org/reflect#Kind
The text was updated successfully, but these errors were encountered: