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)?
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build397350464=/tmp/go-build -gno-record-gcc-switches"
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.