Update INSTALLGO.md

Added more information regarding souring  Go environment and testing the setup.
This commit is contained in:
koolhead17
2015-11-12 13:19:50 +05:30
parent 6cd0ca9c51
commit 21cf62912e
+15 -4
View File
@@ -57,8 +57,19 @@ Add the following exports to your ``~/.bash_profile``. Environment variable GORO
and GOPATH specifies the location of your project workspace.
```sh
$ export GOPATH=${HOME}/go
$ export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
$ export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
$ export PATH=$PATH:${GOPATH}/bin
export GOPATH=${HOME}/go
export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
export PATH=$PATH:${GOPATH}/bin
```
##### Source the new enviornment
```sh
$ source ~/.bashrc
```
##### Testing it all
```sh
$ go env
```