0
0

More than 3 years have passed since last update.

Go言語のバージョンを切り替えるためのgoenvをインストールする方法

Posted at
git clone https://github.com/syndbg/goenv.git ~/.goenv

として~/.goenvを作成する。その後.zshrcに環境変数とgoenvの初期化を追加する。

export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"

記述したら、source ~/.zsrhcとして設定を再読込する。この状態でgoenvが使えるようになる。

次にgo 1.14.14をインストールする。

goenv install 1.14.14

詳細なgoenvのインストールは、goenv/INSTALL.md at master · syndbg/goenv を参照すること。

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