From 29be58039577a69bfe239a8aaf2cf26d8debf566 Mon Sep 17 00:00:00 2001 From: Jaana Burcu Dogan Date: Thu, 2 Feb 2017 11:48:22 -0800 Subject: [PATCH] doc: add link to the setting GOPATH guide Change-Id: I4718c82540ef214728393824b89c8c7f6656823b Reviewed-on: https://go-review.googlesource.com/36210 Reviewed-by: Russ Cox --- doc/code.html | 8 ++++++-- 1 file 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 go inside your home dir so $HOME/go on Unix, $home/go on Plan 9, and %USERPROFILE%\go (usually C:\Users\YourName\go) on Windows. -If you would like to work in a different location, you will need to set -GOPATH to the path to that directory. +

+ +

+If you would like to work in a different location, you will need to +set GOPATH +to the path to that directory. (Another common setup is to set GOPATH=$HOME.) Note that GOPATH must not be the same path as your Go installation. -- 2.48.1