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

1.4.liteide.png

Eclipse

Eclipse is also a very commonly used development tool. The following describes how to use Eclipse to write Go programs.

1.4.eclipse1

Eclipse edits the main interface of Go

  1. First download and install Eclipse

  2. Download the goclipse plug-in http: //code.google.com/p/goclipse/wiki/InstallationInstructions

  3. 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

  4. Download MinGW and install it as required

  5. Configuration plug-in

    Windows->Reference->Go

    (1). Configure the Go compiler

    1.4.eclipse2

    Set some basic information of Go

    (2).Configure Gocode (can Select, code completion), set the Gocode path to the previously generated gocode.exe file

    1.4.eclipse3

    Set gocode information

    (3). Configure GDB (optional Select, for debugging), set the GDB path to the gdb.exe file in the MingW installation directory

    1.4.eclipse4

    Set GDB information

  6. Test whether it is successful

    Create a new go project and create a hello.go. As shown below:

    1.4.eclipse5

    New project editing file

    Debug as follows (you need to enter the command in the console to debug):

    1.4.eclipse6

    Figure 1.16 Debugging Go program