From deee03f17eee3bf8c8d6a607d413b8141c0f0714 Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Wed, 17 Jul 2013 18:48:55 +1000 Subject: [PATCH] doc/effective_go: stamp out stray GOROOT reference Replaced with something more appropriate. R=adg, r, minux.ma CC=golang-dev https://golang.org/cl/11421043 --- doc/effective_go.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index 9b0bb7948e..0645f76210 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1915,7 +1915,7 @@ initializer can be a general expression computed at run time. var ( home = os.Getenv("HOME") user = os.Getenv("USER") - goRoot = os.Getenv("GOROOT") + gopath = os.Getenv("GOPATH") ) @@ -1944,11 +1944,11 @@ func init() { if home == "" { home = "/home/" + user } - if goRoot == "" { - goRoot = home + "/go" + if gopath == "" { + gopath = home + "/go" } - // goRoot may be overridden by --goroot flag on command line. - flag.StringVar(&goRoot, "goroot", goRoot, "Go root directory") + // gopath may be overridden by --gopath flag on command line. + flag.StringVar(&gopath, "gopath", gopath, "override default GOPATH") }