]> Cypherpunks repositories - gostls13.git/commitdiff
doc: explain how to set GOPATH to a custom value
authorJaana Burcu Dogan <jbd@google.com>
Thu, 5 Jan 2017 20:28:06 +0000 (12:28 -0800)
committerJaana Burcu Dogan <jbd@google.com>
Fri, 6 Jan 2017 19:34:22 +0000 (19:34 +0000)
Updates #18294.

Change-Id: Ib6b84243a15ed921cc8960e5fa355fd7594181e6
Reviewed-on: https://go-review.googlesource.com/34821
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/code.html

index 9978b523b422cdc12a7d6b5ae55f013e1b914a50..703f38a21a3305fad903bbb3fec1aa3e93bfb19a 100644 (file)
@@ -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>