LoginSignup
4
2

More than 1 year has passed since last update.

MacにGolangをasdfでインストールする

Posted at

はじめに

こんにちは。最近業務で使用するPCでMacbookを支給されてたWindows勢です。絶賛ショートカットを暗記中です:bow:

さて、今回はasdfでgolangをインストールしていこうと思います!

前提

  1. asdfはインストール済み.

MacにGolangをasdfでインストールする

asdfにgolangのプラグインを追加します.

$ asdf plugin-add golang https://github.com/kennyp/asdf-golang.git

そしたらお好きなバージョンをインストールします:ok_hand:

今回は最新を入れます。

$ asdf install golang latest

あとはglobalに設定して終わりです。

$ asdf global golang latest

バージョンを確認します。

$ go version

go version go1.17.6 darwin/amd64

おわりに

無事インストールできました:ok_hand:

参考になりましたら幸いです!

4
2
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
4
2