0
0

More than 1 year has passed since last update.

IntelliJ Go Pluginを設定する

Posted at

IntelliJ Go Pluginは起動直後はまともに動かないので設定が必要。

GOROOT

  • Languages & Frameworks > Go > GOROOT

Goがインストールされたprefixをいれる。macOSだと /usr/local/opt/go/libexec が自動的に指定されるのでそれをセットする。

GOPATH

  • Languages & Frameworks > Go > GOPATH

GOPATHをいれる。僕はGOPATHはHOMEなので $HOME にあたるパスをセットする。
Go Modulesを使っている場合は「Index entire GOPATH」のチェックは外しておいた方がいいらしい。

Go Modules

  • Languages & Frameworks > Go > Go Modules

go.mod を使っているリポジトリでインデックスが動くようにするには、Enable Go modules integrationにチェックをいれる。Environmentは空のままでも動く。

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