Windows installation Go language

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

Official Tutorial Description:

Windows

For Windows users, the Go Project offers two installation options (except for source installation): The ZIP compression pack requires you to set up some environment variables, and the experimental MSI installer automatically configures your installation.

MSI installation program

Open the MSI file and follow the prompts to install the Go tool. By default, the installer puts the Go release into C:\Go.

This installer should place the C:\Go\bin directory in your PATH environment variable. For this change to take effect, you will need to restart all open command lines.

ZIP Archive Package

Download this zip file and extract it to your directory (our recommendation is C:\Go):

If you select a directory other than C:\Go, you must set the GOROOT environment variable for the path you selected.

Add the bin subdirectory (for example, C:\Go\bin) in your Go root directory to your PATH environment variable.

Install using a compressed package. Bark finishing.

1. Download, unzip to the computer:

2. Modify PC Settings: Environment variables, System variables

Done...

Verify that the installation is successful

Enter CMD in the run to open the command-line tool, enter go at the prompt to check if you can see the Usage information. Enter the CD%goroot%to see if you can go to the Go installation directory. If successful, the installation is successful.

If not, check the values of the above environment variables Path and goroot. If not present please reinstall after uninstalling, exists please restart the computer and retry the above steps.

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.