Windows Builds Golang development platform

Source: Internet
Author: User

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.

Build Golang environment Step, here only introduce liteide.

1. Download the Golang SDK installation package

Golang SDK packages are available in both zip and MSI versions

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

This is only used to install the base library and C + + compile libraries

3. Download 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!")

}

Windows Builds Golang development platform

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.