This is a creation in Article, where the information may have evolved or changed.
First, download and install go
Address: Https://code.google.com/p/go/downloads/list According to their own system, choose version, My is window7, so under the MSI installed version.
Second, the test environment
Open cmd. Input go enter, found a hint, this is right, the installation is successful.
Third, Hello World
Create a new file called Hello.go to edit with Notepad, as follows:
Package Mainimport "FMT" Func Main () {FMT. Printf ("Hello World");}
Open cmd to run D:\go_demo\hello.go results as shown in the Go run
This shows that we have been successful in Hello World.
IV. Development environment
Notepad is, after all, a inefficient development tool, especially for our Java programmers, who are more accustomed to eclipse development. Therefore, we will now configure the Eclipse plug-in.
But before we do, we have a few things to do:
1. Set Environment variables: Add%git%/bin directory Add%path% variable, create a new environment variable named: Gopath, the location is specified as: Any new directory on your computer.
2. Download Liteide, Address: https://code.google.com/p/golangide/downloads/list
3. Create a new project. Okay, OK.