Golang Study One (Win7 environment construction)

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

1. Go Install package download and install

Download from the Go Chinese community: https://studygolang.com/dl The corresponding version, run the installation directly after downloading, the installation path will use its default C:\Go\, then all the way next and complete the installation.

2.Go Language environment variable settings

The Go language needs to configure both the Goroot and PATH environment variables: goroot and Gopath, if the first installation uses the default installation directory C:\Go\, then the Setup program has set the Goroot and PATH environment variables so that it does not need to be manually set.





Note that the above environment change settings are consistent with the path selected during installation.

3. Test environment variables

Open the CMD terminal and enter the go env to see if the variable is set successfully:


4. Download and install Liteide

Liteide is a simple, open source, cross-platform Go language IDE, download address: https://www.golangtc.com/download/liteide, select the appropriate version to download and install the run.

After the installation is complete, open the application, "View" and "Edit current Environment" to confirm that the Goroot variable matches the Go installation path:



5. Create a demo program

FILE-New, create a Mydemo program


Compile and run the program to see the results of the run



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.