1, go language download
Go language official Download address: https://golang.org/dl/
Sometimes can not open, more than a few times to refresh.
Download the Go language version for your system, I downloaded the window version of the installer, not the source. 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, as shown in the following figure:
No need to worry oh, just click the "Run" button. The following figure:
Click the "Next" button and proceed to the next step. will display the following figure:
If "I accept the" terms in the License argeement is not selected, you must select this item, or you will not be able to continue the installation. The following figure:
By default, "I accept the terms in the License argeement" is selected, click on the "Next" button and proceed to the next step, showing the following figure:
Go language default installation directory will be installed in "C" disk, my installation in the "D" disk, you can modify the installation directory for your own, the installation directory after the modification, directly click the "Next" button, the next step, display the following figure:
Click on the "Install" button to install and display the following image:
In this step, the system's security prompts appear under Window 10, and the "Yes" button is clicked between, waiting for the Go language installation to complete, showing the following figure:
Until it appears as shown in the above illustration, the Go language has been installed and the "Finish" button is clicked to complete the installation.
2. System environment variable setting
Under Window 10, open File Explorer, right-click on this computer, pop the "right menu" and click on the properties in the "right menu", as shown below:
Click "Properties" to show the following image:
Then click on "Advanced system settings" to display the following image:
Click on the "Environment variables" button in the System properties to display the following image:
If installed directly through the Go Language installation package, the "goroot" variable is automatically added to the system variable and the Go Language installation directory is configured in "Path." If there is no "goroot" variable in the system variable, add it manually, click the "New ..." button in the "System variable", as shown below:
In the variable name, enter Goroot, and in "Variable value" Enter the Go Language installation directory (I have the Go language installed in the D:\GO directory).
After configuring the Goroot variable, click the "OK" button directly. Then locate the "Path" variable in the system variable and double-click directly to display the following image:
Check the directory in the "Edit environment variable" to see if you have the bin directory configured in the Go language. If not, add directly, click the "New" button, the following figure:
In the Red box, enter D:\Go\bin (my installation is in the D:\GO directory), or "%goroot%\bin". Once the input is complete, click on 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, enter CMD, as shown below:
Click on the "OK" button to display the following image:
Direct input: Go version and click the Return button. Show the following figure:
If the information shown in the Red box indicates that you have successfully installed.
It will then explain how to configure the Go language development environment under eclipse.