-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/cmd/godoc: inconsistent reporting of synopsis vs command documentation #7119
Comments
I've also found an issue with The problem is that From the help/description of
Where "package fmt" implies to me the parameter should be a valid Go package. Consider these steps:
Clearly, See golang/gddo#225 (comment) for more details on why it happens. |
I don't get it. package documentation is reserved for documenting commands, To what extend should godoc try to verify the package/command? Should it |
Hi @minux,
That's not true as far as I can tell, it can be used to document any Go package (command or library). Can you show where it says otherwise, because I don't see that documented and in practice, it works on non-main packages too (Edit: I am wrong about this, sorry. It didn't look like it was for commands only, but the docs it contains seem to be ignored for non-main packages.).
If it finds that there are 0 .go files (either because there are really no .go files, or because the ones that were there were all ignored due to above rules), it should not try to display any docs (what docs can be displayed if there are 0 .go files?). |
On Tue, Dec 30, 2014 at 12:18 AM, Dmitri Shuralyov <[email protected]
You quoted go/build source code, but that doesn't prove the point, you
|
Hmm, I realize now that
I see, that makes sense, thank you. Anyway, the reason I considered this an (minor) issue is because IMO the behavior of godoc.org and Also, this concept of package name |
The text was updated successfully, but these errors were encountered: