]> Cypherpunks repositories - gostls13.git/commit
cmd/go: better UI for go doc
authorRob Pike <r@golang.org>
Wed, 29 Apr 2015 03:55:01 +0000 (20:55 -0700)
committerRob Pike <r@golang.org>
Wed, 29 Apr 2015 19:12:53 +0000 (19:12 +0000)
commit06946aad1973c42e26ddb0890c57ef37fecbb48a
tree25e4da2e1d90fae96bfe92e2911194a6a8b8093c
parentc26fc88d56ee4f93c98fc8923fe256121e6199cf
cmd/go: better UI for go doc

Print it out much like godoc so there isn't a single block of text.
Print the symbol before its comment and indent the comment so
individual symbols separate visually.

Buffer the output.

Add a -c option to force case-sensitive matching.

Allow two arguments, like godoc, to help disambiguate cases
where path and symbol may be confused.

Improve the documentation printed by go help doc.

Change-Id: If687aad04bbacdf7dbe4bf7636de9fe96f756fd0
Reviewed-on: https://go-review.googlesource.com/9471
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