Setting up Go-lang-plugin on IntelliJ IDE (Windows)
While there are many guides about setting up go-lang-plugin on Linux and Mac Os X wasn’t able to find one for Windows and it took me a while to figure it out.
Bypassing the very basic steps, you should have Go SDK (Download) and IntelliJ IDE (Download) installed.
Open the directory which you installed Go -> bin and execute go.exe.
Now open IntelliJ and go Run -> Edit Configurations and on the menu Go Application should have the name of the project you created. Click on it and check the Environment variables on the right. Add GOROOT=“directory of Go folder” (E.g. GOROOT=C:/Go).
Although I still get an error: GOPATH environment variable is empty or could not be detected properly., have tried compiling different projects and no problem so far.