]> Cypherpunks repositories - gostls13.git/commit
godoc: make godoc go work
authorRobert Griesemer <gri@golang.org>
Tue, 14 Feb 2012 21:57:21 +0000 (13:57 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 14 Feb 2012 21:57:21 +0000 (13:57 -0800)
commit3a582a768be7c95cbaf1a450140f367d9b7221d0
treebc0f30ebe37516d15698bf67e031c51dfef63af0
parent95902d10d2de03b1c22c626462627fb2251cf55b
godoc: make godoc go work

- if a package path leads to subdirectories only,
  show command instead, if any
- to force documentation for a command, use the
  cmd/ prefix, as in: godoc cmd/go
  (note that for the go command, the prefix is
  not required since there is no actual go library
  package at the moment)

Fixes #3012.

R=rsc
CC=golang-dev
https://golang.org/cl/5665049
src/cmd/godoc/doc.go
src/cmd/godoc/main.go