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:
parent
f00872527b
commit
181dc14cd6
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user