I want to use Go, but I\'m having trouble running the go command. I installed go1.5.2 darwin/amd64, but when I run the command go version, I get an error in the ter
go version
Add the following line to ~/.bashrc or ~/.bash_profile file at the end on your Mac
~/.bashrc
~/.bash_profile
alias go="/usr/local/go/bin/go"
And in the Terminal
Terminal
source ~/.bashrc or source ~/.bash_profile in an existing terminal session. Or to see the new changes you can also re-open a new terminal session.
source ~/.bashrc
source ~/.bash_profile