Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: clarify that 'go list' without arguments lists the package in the current directory #32707
What version of Go are you using (
Thanks for reporting. I think this behavior is documented in the current version of Go.
It says that
What do you think?
All the program outputs you've quoted match with those from my version.
This all seems very logical now that you've explained it, but I don't think a beginner gopher would figure it out. Personally, I gave up on the help file when reading the struct for errors in the middle of
I was wondering if it were possible to show the command ran above it's output in the help file. Below are the first lines of go help list:
If there was a command specified above the output (would that be
All of the go help topics are on one page at https://golang.org/cmd/go/. By now, that page has grown to be very large, and it serves well as a reference, but not something that's a great starting point for beginners on day 1.
We're planning to improve that by creating better-organized documentation that serves as a guide (/cc @rsc), and I hope that work will address this issue you've raised.