1
0
mirror of https://github.com/golang/go synced 2024-11-24 04:50:07 -07:00
go/src
Rob Pike 101a677ebf cmd/doc: add -all flag to print all documentation for package
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 <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2018-10-17 08:36:13 +00:00
..
archive
bufio
builtin
bytes
cmd cmd/doc: add -all flag to print all documentation for package 2018-10-17 08:36:13 +00:00
compress
container
context
crypto crypto/tls,crypto/x509: normalize RFC references 2018-10-17 03:58:03 +00:00
database/sql
debug debug/plan9obj: simplify s[:] to s where 2018-10-13 11:24:43 +00:00
encoding encoding/json: always verify we can get a field's value 2018-10-16 14:02:52 +00:00
errors
expvar
flag
fmt Revert "fmt: fix incorrect format of whole-number floats when using %#v" 2018-10-16 21:54:35 +00:00
go runtime/internal/math: add multiplication with overflow check 2018-10-15 17:58:06 +00:00
hash
html
image jpeg: simplify 'x = x op ...' to 'x op= ...' 2018-10-13 11:18:56 +00:00
index/suffixarray
internal internal/cpu: add invalid option warnings and support to enable cpu features 2018-10-15 21:46:44 +00:00
io
log
math
mime
net net/http: flesh out Transport's HTTP/1 CONNECT+bidi support to match HTTP/2 2018-10-12 15:00:32 +00:00
os os: make UserHomeDir return "/" on iOS 2018-10-12 14:25:13 +00:00
path
plugin
reflect
regexp regexp: add partial Deprecation comment to Copy 2018-10-12 17:48:44 +00:00
runtime cmd/compile: avoid string allocations when map key is struct or array literal 2018-10-15 19:22:07 +00:00
sort
strconv strconv: add comment explaining bounded shift in formatBits 2018-10-15 21:45:52 +00:00
strings strings: Replace s[:] to s where s is a slice. 2018-10-13 11:17:13 +00:00
sync
syscall syscall: correctly pad with NUL in FreeBSD convertFromDirents11 2018-10-12 14:55:06 +00:00
testdata
testing testing: implement -benchtime=100x 2018-10-12 17:48:31 +00:00
text
time
unicode
unsafe
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc