This is a creation in Article, where the information may have evolved or changed.
Liteide was used before, but it always crashes, so it switches to goclipse. Even though it's called goclipse, it's just a plugin developed for Golang on Eclipse.
4.5orversion8or later
Because GFC is closed, we need to https://github.com/GoClipse/goclipse.github.io/archive/master.zip download the Goclipse installation package and unzip it first. Then open eclipse (make sure that you already have the CDT), Help, install New software ..., then choose the Add button, enter the unpacked release directory, select Goclipse, and then continue with next to install successfully. You will need to restart eclipse after the installation is complete.
After the installation is complete, when you create a project to write code, you find that you cannot prompt for code, you will be prompted for missing Gocode, yes, we need to install it. Set the GOPATH environment variable and add the bin path under the Gopath path to the PATH environment variable and execute the following command:
-u github.-u-ldflags-H=windowsgui github.com/nsf/gocode
After the installation is complete, restart Eclipse.
Goclipse Official website: http://goclipse.github.io/
Goclipse:https://github.com/goclipse/goclipse
Gocode:https://github.com/nsf/gocode