This is a creation in Article, where the information may have evolved or changed.
Linux (Debian gnu/linux 9 (Stretch) 64-bit) settings
1. Download the latest version of Eclipse, I downloaded the eclipse-jee-oxygen-r-linux-gtk-x86_64.tar.gz
2. Download the latest version of Go (domestic seems to be unable to access, you can try the domestic go Chinese web download), I downloaded the go1.8.3.linux-amd64.tar.gz
3. Setting up the GO system environment
Unzip the downloaded go package into the/usr/local/go directory
Increase in/etc/profile:
export GOROOT=/usr/local/goexport GOPATH=/home/xxxx/goexport PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
Some machines need to be restarted (preferably restarted)
4.Eclipse Download Install Goclipse plugin
Help-->> Eclipse Marketplace
5. Set Goclipse
Window-->> Preferences
Set the root directory of Go
Set the Go tool formatting code, hints, etc.
Setting the Debug function
Linux Debian uses apt to install GDB tools
root@debian:/home# apt list gdbgdb/stable,now 7.12-6 amd64 [已安装]root@debian:/home# apt install gdb -y
6 To this end, you can build a go project with eclipse