1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:14:41 -07:00

cmd/godoc: use *goroot as base path in zip file

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5781069
This commit is contained in:
Andrew Gerrand 2012-03-15 11:31:16 +11:00
parent f00872527b
commit 181dc14cd6

View File

@ -42,7 +42,7 @@ func init() {
log.Fatalf("%s: %s\n", zipfile, err) log.Fatalf("%s: %s\n", zipfile, err)
} }
// rc is never closed (app running forever) // rc is never closed (app running forever)
fs.Bind("/", NewZipFS(rc, zipFilename), "/", bindReplace) fs.Bind("/", NewZipFS(rc, zipFilename), *goroot, bindReplace)
// initialize http handlers // initialize http handlers
readTemplates() readTemplates()