Golang Development Tools Liteide use method collation

Source: Internet
Author: User

Installation

Refer to GitHub's instructions

Add Gopath

  

  

Create workspace

  

Create a new file

  

Run the program

There are two ways to run a program in Liteide:

FR (Filerun) is a single file that compiles and runs, and you can use SHIFT + ALT + R shortcut keys;

BR (Buildandrun) is compiled to run the entire project, you can use the COMMAND + R shortcut key.

The difference between compiling and running a single file and compiling the entire project is:

When compiling and running the entire project, only one source file is allowed to have the main function;

When compiling and running a single project, multiple source files are allowed to contain the main function, and no error occurs when running.

  

Using the Go Get/install installation package

Some shortcut keys

Function Shortcut keys
Jump to function declaration Command + SHIFT + J
Automatic format code (save file) Command + S

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.