From 21cf62912e9cda0118f825a93f723cd7e114d1a1 Mon Sep 17 00:00:00 2001 From: koolhead17 Date: Thu, 12 Nov 2015 13:19:50 +0530 Subject: [PATCH] Update INSTALLGO.md Added more information regarding souring Go environment and testing the setup. --- INSTALLGO.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 ```