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.