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
This is what i did on my mac:
opened the file ~/.zshrc using sudo nano ~/.zshrc then pasted
~/.zshrc
sudo nano ~/.zshrc
export PATH=$PATH:/usr/local/go/bin save and exit(ctrl + s, ctrl + x then press y) then ran
export PATH=$PATH:/usr/local/go/bin
. ~/.zshrc go was up and running, verified by typing just go in command line.
. ~/.zshrc