1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -07:00

godoc: fix initialization issue

R=rsc
CC=golang-dev
https://golang.org/cl/207111
This commit is contained in:
Robert Griesemer 2010-02-16 11:54:12 -08:00
parent 5aa3a8de6d
commit ffd0961313
2 changed files with 1 additions and 2 deletions

View File

@ -100,7 +100,7 @@ var (
)
func initRoots() {
func init() {
goroot = os.Getenv("GOROOT")
if goroot == "" {
goroot = pathutil.Join(os.Getenv("HOME"), "go")

View File

@ -152,7 +152,6 @@ func main() {
log.Exitf("negative tabwidth %d", *tabwidth)
}
initRoots()
readTemplates()
if *httpaddr != "" {