2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Homebrewでバージョンを指定してGoをインストールする方法

Posted at

Homebrewでバージョンを指定してGoをインストールする方法をご紹介します。
まず、HomebrewでインストールできるGoのバージョンを確認するために下記のコマンドを実行します。

% brew search "go@1"    #brew search goでも可
==> Formulae
go@1.10      go@1.12      go@1.14      go@1.16      go            gom
go@1.11      go@1.13      go@1.15      go@1.9       gor          gox

  

今回は go@1.16をインストールしたいと思います。下記コマンドを実行します。

% brew install go@1.16

  

指定したバージョンがインストールされていることを確認します。

% go version
go version go1.16.13 darwin/amd64
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?