Go language development tools
LiteIDE
LiteIDE is an open source, cross-platform lightweight Go language integrated development environment (IDE).
Supported operating systems
Windows x86 (32-bit or 64-bit)
Linux x86 (32- bit or 64-bit)
Download address: http://sourceforge.net/projects/liteide/files/
Source code address: https://github. com/visualfc/liteide
Eclipse
Eclipse is also a very commonly used development tool. The following describes how to use Eclipse to write Go programs.
Eclipse edits the main interface of Go
First download and install Eclipse
Download the goclipse plug-in http: //code.google.com/p/goclipse/wiki/InstallationInstructions
Download gocode, code completion tips for go
gocode’s github address:
https://github.com/nsf/gocode
To install git under windows, usually use msysgit
and then install it under cmd:
go get -u github.com/nsf/gocode
You can also download the code and compile it directly with go build, which will generate gocode .exe
Download MinGW and install it as required
Configuration plug-in
Windows->Reference->Go
(1). Configure the Go compiler
Set some basic information of Go
(2).Configure Gocode (can Select, code completion), set the Gocode path to the previously generated gocode.exe file
Set gocode information
(3). Configure GDB (optional Select, for debugging), set the GDB path to the gdb.exe file in the MingW installation directory
Set GDB information
Test whether it is successful
Create a new go project and create a hello.go. As shown below:
New project editing file
Debug as follows (you need to enter the command in the console to debug):
Figure 1.16 Debugging Go program