This is a creation in Article, where the information may have evolved or changed.
See many more complex on the web with the go tutorials that are installed on the window
So this time the system to learn about Google's Go language discovery used particularly convenient for some small program development
Almost the same performance compared to C + + (personal opinion)
The following will be sent to the go installation and use
Download https://golang.org/dl/
CMD->go or set go or go env
Jump out of the following sentence installation success
Go is a tool for managing go source code.
You can start testing here.
Sublime editor with download connection bar http://www.sublimetext.com/
Hello.go
package main
import
func main () {
fmt. Println (
" Hello, world! "
"
}
Save the above program to Hello.go and then execute it on the command line:
Go run Hello.go the results are out!
And the Go language can also compile the GO program directly into EXE, and then publish it, more convenient than Python (need to use py2exe), only need to run on the command line:
Go build hello.go can see and execute the compiled exe.
Of course, Eclipse +goclipse is okay.
- Download and install the latest JRE on the http://java.com/
- Download the latest eclipse from http://www.eclipse.org/and unzip it
Just downloaded eclipse is not support go, in order to allow it to support the go language, we need to install a plugin: Goclipse.
Project Address: https://code.google.com/p/goclipse/
The installation process is simple, just add a source in eclipse: http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/, and then check Goclipse to install
After installation, restart Eclipse, and we can use eclipse to write the Go language program.