From: Andrew Gerrand Date: Wed, 6 Jan 2016 23:53:07 +0000 (+1100) Subject: doc: show relevant test instructions on install page X-Git-Tag: go1.6beta2~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e9fc522100e3e3109de96ddb5e0063a5124b97ba;p=gostls13.git doc: show relevant test instructions on install page Fixes golang/go#12490 Change-Id: I0861e62aaa589fc63217c83e9c227c17e35cda75 Reviewed-on: https://go-review.googlesource.com/18277 Reviewed-by: Russ Cox --- diff --git a/doc/install.html b/doc/install.html index e9f0f0dc09..6baf2b53c8 100644 --- a/doc/install.html +++ b/doc/install.html @@ -220,19 +220,29 @@ and building a simple program, as follows.

Create a directory to contain your workspace, -$HOME/work for example, and set the GOPATH environment +$HOME/work + +for example, and set the GOPATH environment variable to point to that location.

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

+ You should put the above command in your shell startup script -($HOME/.profile for example) or, if you use Windows, -follow the instructions above to set the +($HOME/.profile for example). + + +On Windows, follow the instructions above to set the GOPATH environment variable on your system. +

@@ -256,21 +266,30 @@ func main() { Then compile it with the go tool:

-
+
 $ go install github.com/user/hello
 
+ +

-The above command will put an executable command named hello +The command above will put an executable command named hello (or hello.exe) inside the bin directory of your workspace. Execute the command to see the greeting:

-
+
 $ $GOPATH/bin/hello
 hello, world
 
+ +

If you see the "hello, world" message then your Go installation is working.