]> Cypherpunks repositories - gostls13.git/commit
Ugly hack to provide some mechanism for printing documentation about
authorRob Pike <r@golang.org>
Fri, 5 Feb 2010 21:53:46 +0000 (08:53 +1100)
committerRob Pike <r@golang.org>
Fri, 5 Feb 2010 21:53:46 +0000 (08:53 +1100)
commitcd2ecfb7b35cb4199bcbc735bd120393e6c4ba8e
tree954efed46e57949b6df7b91f5b8a967df254927e
parentd5b946f43dd9078baac61400559a67557a9dfc53
Ugly hack to provide some mechanism for printing documentation about
Go source outside $GOROOT.

If the argument is a path starting with / or ., disregard $GOROOT.
Also, disable the check for package name matching the directory,
which is counterproductive in this case.

Apologies for the violence to the code but we need some help documenting
Go code outside the standard repository.

R=gri
CC=golang-dev
https://golang.org/cl/201064
src/cmd/godoc/godoc.go
src/cmd/godoc/main.go