This is a creation in Article, where the information may have evolved or changed.
1. Download the Go Language Development kit on Goolge:
Download Address
Now, seemingly goolge also be harmonious, can download calculate your luck, I anyway is link this place to take a long time.
2. There are two types of development packages in this environment, which are divided into. msi and. zip versions.
MSI file directly by clicking on the installation on the line.
And the zip needs to set its own environment variables:
System Variable Name: Goroot
Value: The Go location
System Variable Name: path
Append value:;%goroot%\bin
3. Verify that Go is installed successfully:
At the command line, enter: Go env
If the installation is successful, you can get similar environment configuration information.
4. Install the integrated development environment Liteide:
Liteide is a cross-platform, lightweight, integrated development environment specifically developed for the Go language, in other development environments such as Sublime Text, Vim,eclipse ... etc.) can also be.
Download the development package:
Click to download
5. After unpacking, place the green version under the specified path:
I put it under the D-PLATE:
6. Open the Liteide.exe file in the bin directory:
7. Configuration and Documentation:
Here, you can view the path to the guide documentation and configuration items:
If you do not want to put the project under C:\go, then you can modify the path like this:
Option->liteenv, then click on the option that matches your system (such as win32.env).
Originally the default C:\go, I changed this to the D-disk:
8. Create the project:
New->go1 command Project.
Enter the name of the project and you will see your main function.
9. Run:
Compile the->buildandrun.
Then wait for the result of the run: