Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Go language development tools


May 11, 2021 Go


Table of contents


Go language development tools

LiteIDE

LiteIDE is an open source, cross-platform lightweight Go language integration 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 address: Https://github.com/visualfc/liteide

Go language development tools


Eclipse

Eclipse is also a very common development weapon, and here's how to use Eclipse to write a Go program.

Go language development tools

Eclipse edits Go's main interface

  1. Download and install Eclipse first
  2. Download the goclipse plug-in http://code.google.com/p/goclipse/wiki/InstallationInstructions
  3. Download gocode for go's code-filling tips

    gocode's github address:

    https://github.com/nsf/gocode

    To install git under windows, usually with msysgit

    Install again under cmd:

    go get -u github.com/nsf/gocode

    You can also download the code, compile it directly with go build, and generate a .exe

  4. Download MinGW and pack it as required
  5. Configure the plug-in

    Windows->Reference->Go

    (1). Configure Go's compiler

    Go language development tools

    Set up some basic information about Go

    (2) Configure Gocode (optional, code complement) and set the Gocode path as a previously generated .exe file

    Go language development tools

    Set up gocode information

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

    Go language development tools

    Set up GDB information

  6. The test was successful

    Build a new go project, and then a hello.go. H ere's the picture:

    Go language development tools

    Create a new project edit file

    Debug is as follows (to debug in console with input commands):

    Go language development tools

    Figure 1.16 Debug the Go program