go/src
Rob Pike 91976aa676 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>
2015-07-09 04:09:00 +00:00
..
archive archive/tar: move round-trip reading into common os file 2015-06-30 02:20:20 +00:00
bufio
builtin builtin: remove errant space in hyphenated adjective phrase 2015-06-28 21:41:38 +00:00
bytes
cmd cmd/doc: suppress symbols for commands when showing package docs 2015-07-09 04:09:00 +00:00
compress compress/lzw: return the partial decoding for a truncated input. 2015-06-30 03:47:06 +00:00
container
crypto crypto: fix non-sentence in documentation for Decrypter 2015-07-02 03:43:34 +00:00
database/sql database/sql: make Register safe for concurrent use 2015-06-30 23:15:03 +00:00
debug debug/elf: change R_ARM_REL32 to R_ARM_ABS32 in applyRelocationsARM 2015-06-26 16:17:54 +00:00
encoding encoding/xml: minor changes 2015-07-01 14:13:16 +00:00
errors
expvar
flag flag: Describe the ErrorHandling enum values. 2015-06-05 13:53:26 +00:00
fmt fmt: restore padding for %x on byte slices and strings 2015-06-29 07:17:23 +00:00
go Revert "net, internal/syscall/unix: add SocketConn, SocketPacketConn" 2015-07-02 16:11:03 +00:00
hash hash/crc32: speedup crc32 of IEEE using slicingBy8 2015-06-18 18:14:24 +00:00
html html/template: prevent panic while escaping pipelines 2015-06-27 22:44:33 +00:00
image image/draw: fix double-draw when the dst is paletted. 2015-07-03 03:08:40 +00:00
index/suffixarray
internal Revert "net, internal/syscall/unix: add SocketConn, SocketPacketConn" 2015-07-02 16:11:03 +00:00
io io: tweak Reader comment 2015-06-29 21:17:47 +00:00
log log: fix flaky test 2015-06-18 18:08:17 +00:00
math math/rand: improve NewZipf documentation 2015-07-03 21:39:04 +00:00
mime mime/multipart: fix bug when body contains prefix of the boundary 2015-07-02 16:04:34 +00:00
net net/http: fix MaxBytesReader at EOF 2015-07-07 21:33:14 +00:00
os syscall: return error instead of panicking in windows StartProcess 2015-06-29 03:54:33 +00:00
path path/filepath: document and test behavior of SkipDir on files 2015-06-29 21:16:35 +00:00
reflect reflect: test repeats with large scalar tails 2015-06-26 17:26:09 +00:00
regexp regexp: small correction to test comment 2015-06-14 17:09:13 +00:00
runtime cmd/compile: initialize line number properly for temporaries 2015-07-07 21:30:59 +00:00
sort
strconv unicode: upgrade to 8.0.0 2015-06-26 18:01:29 +00:00
strings
sync sync: disable flaky WaitGroup misuse test in short mode 2015-06-29 18:44:52 +00:00
syscall syscall: return error instead of panicking in windows StartProcess 2015-06-29 03:54:33 +00:00
testing testing/quick: improve function signature error. 2015-06-26 18:03:32 +00:00
text text/template: make zero Template work again 2015-06-24 22:27:33 +00:00
time time: correct unrepresentable Unix time comment 2015-06-18 18:21:59 +00:00
unicode unicode: upgrade to 8.0.0 2015-06-26 18:01:29 +00:00
unsafe
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.bat build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.rc build: fix clean scripts 2015-06-18 16:13:13 +00:00
iostest.bash
make.bash doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
make.bat doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
make.rc doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
nacltest.bash
race.bash cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
race.bat cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
run.bash
run.bat
run.rc