Go development environment built under windows

Source: Internet
Author: User
Tags sublime text
This is a creation in Article, where the information may have evolved or changed.

1. Download the Go Language Development kit on Goolge:

Download Address

Now, seemingly goolge also be harmonious, can download calculate your luck, I anyway is link this place to take a long time.


2. There are two types of development packages in this environment, which are divided into. msi and. zip versions.


MSI file directly by clicking on the installation on the line.

And the zip needs to set its own environment variables:

System Variable Name: Goroot

Value: The Go location


System Variable Name: path

Append value:;%goroot%\bin



3. Verify that Go is installed successfully:

At the command line, enter: Go env

If the installation is successful, you can get similar environment configuration information.



4. Install the integrated development environment Liteide:

Liteide is a cross-platform, lightweight, integrated development environment specifically developed for the Go language, in other development environments such as Sublime Text, Vim,eclipse ... etc.) can also be.

Download the development package:

Click to download

5. After unpacking, place the green version under the specified path:

I put it under the D-PLATE:

6. Open the Liteide.exe file in the bin directory:

7. Configuration and Documentation:

Here, you can view the path to the guide documentation and configuration items:


If you do not want to put the project under C:\go, then you can modify the path like this:

Option->liteenv, then click on the option that matches your system (such as win32.env).

Originally the default C:\go, I changed this to the D-disk:


8. Create the project:

New->go1 command Project.

Enter the name of the project and you will see your main function.


9. Run:

Compile the->buildandrun.

Then wait for the result of the run:




Related Article

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.