-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/doc: support output of full documentation for a package or identifier #25595
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
Comments
Similar to #18807 |
@robpike, any ideas for some flag to 'go doc' to mean 'print everything like godoc does'? The overall idea is that eventually we could deprecate 'godoc' for command-line queries completely. |
Maybe |
A "-all" flag sounds good for the next release. |
|
Marking this as release blocker, now that godoc CLI support is removed. Folks will be miffed if we just point them to a This was also raised in a golang-nuts thread, so ensuring this gets looked at. |
Change https://golang.org/cl/141977 mentions this issue: |
Unlike the one for the old godoc, you need the -u flag to see unexported symbols. This seems like the right behavior: it's consistent. For now at least, the argument must be a package, not a symbol. This is also different from old godoc. Required a little refactoring but also cleaned up a few things. Update #25595 Leaving the bug open for now until we tackle go doc -all symbol Change-Id: Ibc1975bfa592cb1e92513eb2e5e9e11e01a60095 Reviewed-on: https://go-review.googlesource.com/c/141977 Run-TryBot: Rob Pike <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Russ Cox <[email protected]>
Change https://golang.org/cl/144357 mentions this issue: |
Removal of CLI support in
godoc
is being considered in #25443. Support for full package documentation is the main reason I continue to usegodoc
(otherwise I usego doc
).Please consider adding support to output full package documentation in
go doc
. This would make it much easier to review all the documentation at once to get a proper understanding of a package, as well as arbitrary searches within the full package text.Perhaps implement a
-v
flag that outputs full documentation for a package or identifier (similar togodoc
).The text was updated successfully, but these errors were encountered: