LiteIDE is an open source, cross-platform, lightweight integrated development environment (IDE) specially designed for Go language development. It is a development tool for Go language and is developed based on Qt (a cross-platform C framework), supporting Windows, Linux and Mac OS X platforms.
The operating environment of this tutorial: Windows 10 system, LiteIDE X36 version, Dell G3 computer.
LiteIDE is an open source, cross-platform, lightweight integrated development environment (IDE) specially designed for Go language development. It is developed based on Qt (a cross-platform C framework) and supports Windows, Linux and Mac OS X platform. The first version of LiteIDE was released in early January 2011 and is one of the earliest IDEs for the Go language.
LiteIDE has very good support for editing, compiling and running Go programs and projects. It also includes an abstract syntax tree view of the source code and some built-in tools (this development environment was developed by the Chinese uncle vfc).
LiteIDE is a very easy-to-use lightweight Go integrated development environment (based on QT, Kate and SciTE), including cross-platform development and other necessary features, for code writing, automatic completion and operation Debugging has excellent support. It uses the concept of Go projects to browse and manage project files. It also supports the function of switching between various Go development environments and cross-compilation.
At the same time, it has the function of abstract syntax tree view, which can clearly overview the constants, variables, functions, different types and their properties and methods in the project.
Download LiteIDE
You can download the LiteIDE installation package through the following methods:
Open source software platform: https://sourceforge.net/projects/liteide/files/;
In this section we need to download the Windows version of LiteIDE installation package.
Because LiteIDE is a green version and does not require installation, after the download is completed, you will get a compressed file in ZIP format.
Extract the compressed package to any directory. Here we decompress the compressed package to the D drive. After decompression, you will get a folder named "liteide".
Enter the bin folder in the LiteIDE folder. You can find a file named "liteide.exe" in the bin folder, which is the startup program of LiteIDE.
Double-click to run "liteide.exe" to open LiteIDE normally. In order to facilitate future use, it is recommended that you create a shortcut to LiteIDE on the desktop (in "liteide.exe "Right-click → "Send to" → "Desktop Shortcut").
Configuring LiteIDE
To modify the current running environment, you need to set the corresponding running settings according to different systems Environment, because we are using a 64-bit Windows system, we need to set the running environment to Win64.
Configure the current running environment, click "Tools" and select "Edit Current Environment" in the drop-down menu, as shown in the figure below.
Find "GOROOT=xxx" in the opened file and modify it to the value corresponding to GOROOT in the environment variable, as shown below. (Note: Remember to save after the modification is completed)
It doesn’t matter if you can’t remember clearly. You can use the go env command in the CMD window to view the corresponding value of GOROOT.
Add a custom GOPATH and find "Manage GOPATH/Modules..." in the "Tools" menu, as shown in the figure below. (Note: Because the system already contains a default GOPATH, this step is not necessary, just understand it)
Find "Use custom GOPATH" in the pop-up window, check it, then click "Add Directory" and select the appropriate directory.
New project
At this point LiteIDE has been basically configured, let’s create it now A project to test it out.
First, select "New" in the "File" menu, in the pop-up window, select the system default GOPATH path, select "Go1 Command Project" as the template, and finally fill in the project name and select the appropriate directory. , click "OK" after confirming it is correct.
The newly created project is as follows. The editor automatically created two files for us and generated simple code in "main.go".
Click the "BR" button in the upper right corner of the editor to run the code in "main.go" and generate an .exe file in the current directory. executable file.
[Related recommendations: Go video tutorial, Programming teaching】
The above is the detailed content of What is LiteIDE. For more information, please follow other related articles on the PHP Chinese website!