diff --git a/INSTALLGO.md b/INSTALLGO.md index ade801e4..442a2c5a 100644 --- a/INSTALLGO.md +++ b/INSTALLGO.md @@ -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 ```