From e9fc522100e3e3109de96ddb5e0063a5124b97ba Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 7 Jan 2016 10:53:07 +1100 Subject: [PATCH] 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 --- doc/install.html | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/doc/install.html b/doc/install.html index e9f0f0dc095..6baf2b53c8f 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.