Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/doc: not printing package name in type query #31457
It seems like the package line should be printed always, and there is just a bug in this code path.
There's inconsistency for sure; this one doesn't print the package either:
Should the package always be printed? Maybe. Or maybe just if the arguments don't match the package name?
There's also this, which is annoying. If I run that command in my home directory, not in a module directory, I get a distracting message containing nothing mentioned on the command line: