Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Go Development Tools

Go Development Tools


VSCode

For the VSCode installation tutorial, see:https://www.runoob.com/w3cnote/vscode-tutorial.html

Then we open VSCode's extensions (Ctrl+Shift+P):

Search for go:

Click install; once installation is complete, we can use features such as code completion, testing, and debugging.


GoLand

GoLand is a Go IDE from the JetBrains family, with a 30-day free trial.

Installation is also simple; visit the GoLand download page, and download the appropriate software for your current system among the three major platforms (Mac, Linux, Windows).


LiteIDE

LiteIDE is an open-source, cross-platform, lightweight Go integrated development environment (IDE).

Supported operating systems

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.

The main interface of Eclipse for editing Go

  1. First, download and install Eclipse
  2. Download goclipse Plugin https://github.com/GoClipse/goclipse/blob/latest/documentation/Installation.md#installation
  3. Download gocode, used for Go code completion

    The GitHub address of gocode:

    https://github.com/nsf/gocode

    On Windows, to install git, usually use msysgit。

    then install under cmd:

    go get -u github.com/nsf/gocode

    Alternatively, you can download the code and compile it directly with go build, which will generate gocode.exe

  4. Download MinGW and install it as required
  5. Configure the plugin

    Windows->Reference->Go

    (1) Configure the Go compiler

    1.4.eclipse2

    Set some basic information for Go

    (2) Configure Gocode (optional, for code completion); set the Gocode path to the previously generated gocode.exe file

    1.4.eclipse3

    Set gocode information

    (3) Configure GDB (optional, 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 was successful

    Create a new Go project, then create a hello.go. As shown below:

    1.4.eclipse5

    Create a new project and edit the file

    Debug as follows (you need to debug by entering commands in the console):

    1.4.eclipse6

    Figure 1.16 Debugging a Go program