If you read the git history of the installation page you'll see we've pushed the GOROOT instruction lower and lower in the page. However the advice to set GOROOT has permeated to the Go zeitgeist and continues to be promulgated in tutorials and blog posts.
On Saturday, 4 February 2017 00:26:46 UTC+11, pfitzsimons wrote: > > I guess the reference to GOROOT can be removed now, is there a reason its > still in the install docs? as Dave say's in a galaxy a long time ago > https://dave.cheney.net/2013/06/14/you-dont-need-to-set-goroot-really > > > "Installing to a custom location > > The Go binary distributions assume they will be installed in /usr/local/go > (or c:\Go under Windows), but it is possible to install the Go tools to a > different location. In this case you must set the GOROOT environment > variable to point to the directory in which it was installed. > > For example, if you installed Go to your home directory you should add the > following commands to $HOME/.profile: > > export GOROOT=$HOME/go > export PATH=$PATH:$GOROOT/bin > > *Note*: GOROOT must be set only when installing to a custom location." > > > it also refers to GOPATH in https://golang.org/doc/install#testing which > again could be removed now? > > > I've just installed 1.7.5 from a new machine without settings these (and a > customer location) on windows at it works. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.