Member-only story

靈界偵探 Cupid Sie 謝銘峰
1 min readNov 16, 2019

--

How to update Golang version on mac

  1. 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!

--

--

靈界偵探 Cupid Sie 謝銘峰
靈界偵探 Cupid Sie 謝銘峰

Written by 靈界偵探 Cupid Sie 謝銘峰

Blockchain Researcher@SuDo Research Labs | Computer Science Ph.D. Candidate@NTU |受害者@FTX https://linktr.ee/siemingfon

No responses yet