diff options
author | Jaana Burcu Dogan <jbd@google.com> | 2017-01-05 12:28:06 -0800 |
---|---|---|
committer | Jaana Burcu Dogan <jbd@google.com> | 2017-01-06 19:34:22 +0000 |
commit | a37b9e8e70fd8e614caa6077b3b8afb488f7f59e (patch) | |
tree | d0de86b64a925e4e6b86cbce5de3eb192b3adbe7 | |
parent | b902a63ade47cf69218c9b38c9a783fc8cfc3041 (diff) | |
download | go-a37b9e8e70fd8e614caa6077b3b8afb488f7f59e.tar.gz go-a37b9e8e70fd8e614caa6077b3b8afb488f7f59e.zip |
doc: explain how to set GOPATH to a custom value
Updates #18294.
Change-Id: Ib6b84243a15ed921cc8960e5fa355fd7594181e6
Reviewed-on: https://go-review.googlesource.com/34821
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | doc/code.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/code.html b/doc/code.html index 9978b523b4..703f38a21a 100644 --- a/doc/code.html +++ b/doc/code.html @@ -160,9 +160,13 @@ $ <b>export GOPATH=$(go env GOPATH)</b> </pre> <p> -To learn more about setting up the <code>GOPATH</code> environment variable, -please see -<a href="/cmd/go/#hdr-GOPATH_environment_variable"><code>'go help gopath'</code></a> +To learn more about the <code>GOPATH</code> environment variable, see +<a href="/cmd/go/#hdr-GOPATH_environment_variable"><code>'go help gopath'</code></a>. +</p> + +<p> +To use a custom workspace location, +<a href="https://golang.org/wiki/EnvVariables#gopath">set the <code>GOPATH</code> environment variable</a>. </p> <h3 id="ImportPaths">Import paths</h3> |