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.

 
123
Kudos
 
123
Kudos

Now read this

FTP and the idea of Diversity

Wouldn’t be nice, if we had a single number that represents the uniformity of a network? A number that shows if multiple hosts are using the same services or they try to be as diverse as possible from the norm. The idea is based on the... Continue →