LoginSignup
0
0

More than 1 year has passed since last update.

mac(intel)で公式インストーラでインストールしたgoを1.18にアップデート

Last updated at Posted at 2022-06-10

Go初心者の備忘メモ。
以下の記事を参考にしました!
https://shinshin86.hateblo.jp/entry/2020/05/08/060000

まず、どこにGoがインストールされているか確認。

$ go env | grep GOROOT
GOROOT="/usr/local/go"

Goが/usr/local/go配下にインストールされているので、そのディレクトリごと消す。

sudo rm -rf /usr/local/go

その後公式のダウンロードページから必要なインストーラを取得して、インストールするだけ。
https://go.dev/dl/

確認

$ go version
go version go1.18.3 darwin/amd64

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0