Go language Learning-environment collocation

Source: Internet
Author: User

Experience the Java internship and then turn the front end of the formal work.

Internship is very busy, turn to do the front-end work, found that time is used to study.

Just now want to build a personal website.

After all, the Java Foundation, database base, and the level of the front end can develop a simple website.

But recent learning has found that, with the development of the front-end, more and more front-end MVC frameworks are beginning to emerge.

And the recent fiery node. JS is also based on JS development.

But JS itself is less than Java mature (personal humble opinion) ...

Therefore, learning go language is also a kind of self-investment (of course, Qiantu!). hehe).

This is a record of the Go language learning process, and I hope to apply it to my personal website!

All right, I'm not talking about this crap. Start Learning go! First

1, download go installation package;

URL, http://www.golangtc.com/download I was in China's Go official website. It seems that the celestial shield. My Computer is still XP (the company does not give the application notebook ...). ), under the 32-bit, is currently 1.3.3 version.

2. Unzip the Go package

3, CMD, configure environment variables

(1) First enter the system setup

(2) New variable, Goroot is your installation directory (unzip directory)

(3) Then follow this procedure to create a new variable, and then fill in the corresponding value.

    • Gopath: The directory used to store the Go language package, which cannot be in the Go installation directory
    • Gobin:go binary Files directory, written%goroot%\bin is good
    • GOOS: Operating System
    • Goarch: Specifies the system environment, 386 means X86,AMD64 represents x64
    • Path: You need to add the%gobin% to the end of the path variable to make it easy to run go at the command line

(4) Then cmd to verify the go. Enter Go env return

(5) Run the file under go.

Run under CMD, run the result:

Go language Learning-environment collocation

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.