This is a creation in Article, where the information may have evolved or changed.
I've heard of Go Lang's name, and I've had time to make up my mind.
The book currently being read is the "Go Language Programming" written by the Xu Xiweiof seven cows.
Well written: At the very beginning, the meaning of Go Lang appeared and some good features of some languages were clearly stated;
The following is basically a summary of the contents of the book, convenient for those who need to use directly.
1. Go env installation and configuration
Go Lang's official website (https://golang.org) Even with a ladder, access is still very slow. But there is a fan of the site (http://golangtc.com/), related resources in this domestic station can also be downloaded to.
(1) First download the OS installation package here: Http://golangtc.com/download
Currently the latest version is GO1.4RC1
(2) Configuring environment variables
First, you need to set the environment variable goroot to go root path;
Secondly, add goroot/bin in path;
Finally, in the command line, enter:
Go version
(If the Go Bin is only written into path, do not set Goroot, the above command will still output normal printing )
Go env
( If the Go Bin is only written into path, do not set Goroot, enter go env below Win7 will prompt: Go:cannot find goroot directory:c:\go)
Check whether the result is normal output, no error.
2.IDE settings
(1) notepad++
The description of the notepad++ setting in Go language programming is obsolete. the relevant settings can refer to this blog post, but this article is a bit outdated. Update below:
(a) Download the Go lang support package here;(digression: This address can also be downloaded to support packages for other languages used by notepad++, such as Google's protobuf, etc. )
(b)
(2) Eclipse
Google has the plug-in for developing eclipse: Goclipse, but requires a higher version, see below:
Requirements:
Eclipse 4.3 (Kepler) or later (http://www.eclipse.org/).
A 1.7 Java VM or later (http://www.java.com/). Otherwise Goclipse would silently fail to start.
The next article summarizes the syntax features of Go lang.