Need help related with a program

Hi Johan Dahl,

Thanks for your response.
On my mac,when i started learning.I installed Go using brew and that has set it at
export GOROOT=/usr/local/opt/go/libexec

and that was working fine…now i installed the new version of GO from there official website and i can see this being installed at “/usr/local/go”
now i try to set the GOROOT as /usr/local/go.
Below are the parameters which i have set in to .bash_profile

export GOPATH=[path]/projects/GoProjects
export GOROOT=/usr/local/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

But when i run “go version” i still get “go version go1.8.3 darwin/amd64” which is a version which i installed when i installed go from brew.

Thanks,