]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: suppress symbols for commands when showing package docs
authorRob Pike <r@golang.org>
Wed, 8 Jul 2015 01:17:01 +0000 (11:17 +1000)
committerRob Pike <r@golang.org>
Thu, 9 Jul 2015 04:09:00 +0000 (04:09 +0000)
commit91976aa676706d579331cb34090550e44f4505df
tree50c3e0034abd17a7075cc810fd7663dba14fda2c
parent1b74c71da5de4d066b8fa142ab158bea4cb96f60
cmd/doc: suppress symbols for commands when showing package docs

Change the default behavior when showing the package docs
for a command to elide the symbols. This makes

go doc somecommand

show the top-level package docs only and hide the symbols,
which are probably irrelevant to the user. This has no effect
on explicit requests for internals, such as

go doc somecommand.sometype

The new -cmd flag restores the old behavior.

Fixes #10733.

Change-Id: I4d363081fe7dabf76ec8e5315770ac3609592f80
Reviewed-on: https://go-review.googlesource.com/11953
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/doc/main.go
src/cmd/doc/pkg.go
src/cmd/go/alldocs.go
src/cmd/go/doc.go