"Go" Windows builds the Go Language compilation environment

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Mainly to assist Yang brother do kubernetes related work, because Kubernetes and Docker are written by the go language, so after changing the source code still need go language compiler to compile and run. So I'm going to install the Go locale on Windows first.

The tools you need:

  • gcc compiler http://gcc.gnu.org/index.html
  • Golang compiler https://golang.org/
  • Liteide ide:https://sourceforge.net/projects/liteide/

The next step is to put the corresponding installation package down and then install, as far as possible in the English directory do not include Chinese.

Then configure the system environment variable and add a Gopath variable to fill in the Go compiler's installation directory.

Open Liteide, in the edit current environment, see, modify the relevant configuration, such as:

Finally, choose Win64 Environment, CTRL+R can compile and run the program, go language development!

Finally, a little bit of programming language topic, look at the idea of going to go seems to be mixed, this is very normal, no language is perfect.

Go developed by Google, and used in the distributed environment, there must be a sense of its existence, to a certain extent, to solve the pain points of the back-end language, C + +, but the lack of generics, error handling and syntax is more strange, also blocked many want to go with the programmer.

Anyway, what to learn with what!

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.