1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Goインストール(goenv)

Posted at

前提

anyenvがインストールされていること

goenvをインストールする

anyenv install goenv
exec $SHELL -l

goenvを使ってGoをインストールする

ここでは最新バージョンのGoをインストールする

go_version=$(goenv install --list | egrep -v 'rc|beta' | perl -pe 's/^ +([0-9]+\.[0-9]+\.[0-9]+)$/$1/' | tail -n 1)
goenv install ${go_version}
goenv global ${go_version}
goenv rehash
go version
出力
go version go1.22.0 darwin/arm64
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?