diff --git a/doc/code.html b/doc/code.html index a4638f9ffbb..2141fb6551c 100644 --- a/doc/code.html +++ b/doc/code.html @@ -108,13 +108,14 @@ when developing Go code.

To get started, create a workspace directory and set GOPATH accordingly. Your workspace can be located wherever you like, but we'll use -$HOME/go in this document. Note that this must not be the +$HOME/work in this document. Note that this must not be the same path as your Go installation. +(Another common setup is to set GOPATH=$HOME.)

-$ mkdir $HOME/go
-$ export GOPATH=$HOME/go
+$ mkdir $HOME/work
+$ export GOPATH=$HOME/work
 

@@ -218,7 +219,7 @@ This command builds the hello command, producing an executable binary. It then installs that binary to the workspace's bin directory as hello (or, under Windows, hello.exe). In our example, that will be $GOPATH/bin/hello, which is -$HOME/go/bin/hello. +$HOME/work/bin/hello.

@@ -254,7 +255,7 @@ optional: you do not need to use source control to write Go code.

 $ cd $GOPATH/src/github.com/user/hello
 $ git init
-Initialized empty Git repository in /home/user/go/src/github.com/user/hello/.git/
+Initialized empty Git repository in /home/user/work/src/github.com/user/hello/.git/
 $ git add hello.go
 $ git commit -m "initial commit"
 [master (root-commit) 0b4507d] initial commit