mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
godoc: fix initialization issue
R=rsc CC=golang-dev https://golang.org/cl/207111
This commit is contained in:
parent
5aa3a8de6d
commit
ffd0961313
2 changed files with 1 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ var (
|
|||
)
|
||||
|
||||
|
||||
func initRoots() {
|
||||
func init() {
|
||||
goroot = os.Getenv("GOROOT")
|
||||
if goroot == "" {
|
||||
goroot = pathutil.Join(os.Getenv("HOME"), "go")
|
||||
|
|
|
|||
|
|
@ -152,7 +152,6 @@ func main() {
|
|||
log.Exitf("negative tabwidth %d", *tabwidth)
|
||||
}
|
||||
|
||||
initRoots()
|
||||
readTemplates()
|
||||
|
||||
if *httpaddr != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue