This is a creation in Article, where the information may have evolved or changed.
Http://www.cnblogs.com/dongritengfei/archive/2011/04/30/2033246.html
The go language is the second language that Google has introduced after simple, the language is known as: The Internet era of C. This means: 1. With the characteristics of Internet web development, that is, the development of high efficiency; 2. The same speed as the C language, that is, the operation is efficient. Believe that these two characteristics will let you find a destination.
1. Installation
The installation steps on Windows are as follows:
- Download GO development environment: Http://code.google.com/p/gomingw/downloads/list
- If the zip is downloaded, unzip it, and if it is exe, install it directly.
- Configuring Environment variables
- Goroot = D:\Program Files\go
- GOBIN =%goroot%\bin
- Goarch = 386
- GOOS = Windows
- If there is no semicolon at the end of path, add it and add%goroot%\bin at the end
Linux, FreeBSD, OS x installation Please crossing the introduction of the network: http://golang.org/doc/install.html
2. Testing (under Windows)
Create a file from anywhere: Gotest.go
Save after writing the following code:
Package Main
Import "FMT"
Func Main () {
Fmt. Printf ("Hello world!")
}
In cmd, under the path to the file, use the command to compile, link, and execute
8g Gotest.go Compilation
8l Gotest.8 Links
8.out.exe execution
If the output Hello world! indicates a successful installation of the development environment
3. Development tools
Liteide (support syntax highlighting) http://code.google.com/p/golangide/downloads/list
4. Related Documents
1. After downloading the Go development environment, DOC will have very detailed documents, or the officer net to see, but these are in English
2. If you want to see Chinese, go to http://code.google.com/p/golang-china/.