Windows Builds Golang development platform

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

Golang is a Google development of an open-source language, temporarily more convenient IDE has INTEILLJ idea, Liteide, Eclipse (Golipse), and so on, using a more convenient ide:liteide and Inteillj idea, But Inteillj idea plugin update is too slow, and there are some problems (Go SDK version support is 1.2, the current latest SDK version is 1.4Beta). Liteide is a gubit open source project that has now been updated to version 24.2.

Build Golang environment Step, here only introduce liteide.

1. Download Golang SDK installation package (latest 1.4Beta, support Android nativeclient so library development)

The Golang SDK package is available in both zip and MSI versions, with download addresses in: Http://golangtc.com/download

Then install it, and when the installation is complete, set goroot and Gopath in the environment variables.

Goroot is set to the Golang SDK installation path, Gopath is the project development path, can be arbitrarily set, the recommended path is: Golang SDK installation path in the SRC directory.

When the above steps are complete, test the Golang environment for success. Open the command-line console, enter go, and if successful, it will output some instructions for go.

2, installation MinGW

Download the MinGW SDK for Golang to do the C + + call library, the recommended installation path does not change

3, download Liteide (currently the latest version is 24.2)

Address: Https://github.com/visualfc/liteide

After downloading, directly unzip the use.

When you open liteide, you can create a project, but only if you need to set up your build environment.

Steps: (1), find the menu--view--Edit environment variable---set the Goroot path and the MinGW path

When set up, you can create a new project to test to see if it works

In the new project, create a new go file and enter the following code:

Package Main

import"FMT"

func Main () {

Fmt. Println ("Hello golang!")

}

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.