LoginSignup
0
2

More than 5 years have passed since last update.

Golang開発環境構築

Posted at

環境

macOS 10.12.6

Homebrewでgoenvをインストール

Homebrewでgoenv(Goのバージョン管理するやつ)を入れる。

$ brew install goenv

zshrcに追記

自分はzshを使っているため、zshrcに追記

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

golangのインストール

以下のコマンドでインストールできるバージョンが確認できる。

$ goenv install -l
Available versions:
  1.2.2
  1.3.0
  1.3.1
  .
  .
  1.9.0

今回は1.9.0をインストールする。

goenv install 1.9.0

その他のコマンドの使用感覚はrbenvやpyenv等と同じ。

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