Member-only story
1 min readNov 16, 2019
How to update Golang version on mac
- Remove old version
sudo rm -rf /usr/local/go
2. Download latest go version
For example, latest go version is 1.13.3
curl -o golang.pkg https://dl.google.com/go/go1.13.3.darwin-amd64.pkg
3. Install on your mac
sudo open golang.pkg
4. Setup Go workspace
Setting “.bash_profile” on your /user dictionary, which is a hidden text file
Also typing in your terminal
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
5. Verify go version
go version
You successfully update your Golang version!