diff options
author | Jaana Burcu Dogan <jbd@google.com> | 2017-02-02 11:48:22 -0800 |
---|---|---|
committer | Jaana Burcu Dogan <jbd@google.com> | 2017-03-07 00:59:54 +0000 |
commit | 29be58039577a69bfe239a8aaf2cf26d8debf566 (patch) | |
tree | 33d18938d5a758b50d2e84abd08a9bfb7f9890fd /doc/code.html | |
parent | cf710949a98aaac48a3d97660f7f6bb7d14f1ad7 (diff) | |
download | go-git-29be58039577a69bfe239a8aaf2cf26d8debf566.tar.gz |
doc: add link to the setting GOPATH guide
Change-Id: I4718c82540ef214728393824b89c8c7f6656823b
Reviewed-on: https://go-review.googlesource.com/36210
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'doc/code.html')
-rw-r--r-- | doc/code.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/code.html b/doc/code.html index 796431aa14..ee9988b0a9 100644 --- a/doc/code.html +++ b/doc/code.html @@ -124,8 +124,12 @@ workspace. It defaults to a directory named <code>go</code> inside your home dir so <code>$HOME/go</code> on Unix, <code>$home/go</code> on Plan 9, and <code>%USERPROFILE%\go</code> (usually <code>C:\Users\YourName\go</code>) on Windows. -If you would like to work in a different location, you will need to set -<code>GOPATH</code> to the path to that directory. +</p> + +<p> +If you would like to work in a different location, you will need to +<a href="https://golang.org/wiki/SettingGOPATH">set <code>GOPATH</code></a> +to the path to that directory. (Another common setup is to set <code>GOPATH=$HOME</code>.) Note that <code>GOPATH</code> must <b>not</b> be the same path as your Go installation. |