This is a creation in Article, where the information may have evolved or changed.
1. Go language download
Official go language download address: https://golang.org/dl/
Sometimes can not open, more refresh several times can.
Download the Go language version for your system, I downloaded the Windows version of the installer, not the source code. Of course you can also download the source code.
Find your download directory under the
Double-click "Go1.7.5.windows-amd64.msi" to run the installation, such as:
No need to worry oh, just click on the "Run" button. Such as:
Click the "Next" button directly to proceed to the next step. are displayed as:
If the "I accept the terms in the License argeement" is not selected, you must select this option or you will not be able to continue with the installation. Such as:
By default "I accept the terms in the License argeement" is selected, directly click on the "Next" button, the next action will be shown as:
Go language default installation directory will be installed in the "C" disk, my installation in the "D" disk, you can modify the appropriate installation directory, after the installation directory modification, directly click on the "Next" button, to do the next step, display such as:
Click the "Install" button directly to install it, such as:
During this step, the system security prompt will appear under Window 10, click "Yes" button, wait for the Go language installation to complete, display such as:
Until it appears as shown, the Go language has been installed, click "Finish" button to complete the installation.
2. System environment variable setting
Under Window 10, open File Explorer, right-click on "This PC", pop Up "Right-click menu", and then click on "Context Menu" properties, such as:
When you click on "Properties", it appears as follows:
Then directly click on "Advanced system settings" to display such as:
Click on the "Environment variables" button in "System Properties" to display such as:
If it is installed directly through the Go Language installation package, the "goroot" variable is automatically added to the "system variables" and the Go Language installation directory is configured within "Path". If there is no "goroot" variable in the "system variable", you need to add it manually, click the "New ..." button in "system variables", such as:
Enter Goroot in the variable name and enter the Go Language installation directory in the variable value (I install the Go language in the D:\GO directory).
After configuring the Goroot variable, click the "OK" button directly. Then find the "Path" variable in the "System variables" and double-click it to display the following:
Check the directory in the "Edit environment variable" to have the Go language's Bin directory configured first. If not, simply add it and click on the "new" button, such as:
In the Red box, enter D:\Go\bin (my is installed in the D:\GO directory), or "%goroot%\bin". Once the input is complete, click the "OK" button and the Go language configuration is complete.
3. Verify that the Go language is installed successfully
Open the system's Run dialog box and enter CMD, such as:
Directly click on the "OK" button to display such as:
Direct input: Click the Enter button after go version. Display as:
If you display the information in the red box, you have successfully installed it.
You will then explain how to configure the Go language development environment under eclipse.