[note] Installation of Golang (PATH)
Install Go on macOS
Install Go using Homebrew:
1
brew install go
Verify the Installation:
After installation, check if Go binaries are located in~/go/bin/
:1
ls ~/go/bin/
Update PATH Temporarily:
If the Go binaries are present, temporarily add~/go/bin
to yourPATH
:1
export PATH=$PATH:~/go/bin
Update PATH Permanently:
To make this change permanent, add the following line to your~/.zshrc
file:1
2echo 'export PATH=$PATH:~/go/bin' >> ~/.zshrc
source ~/.zshrc
[note] Installation of Golang (PATH)