Go language tutorial
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Go was developed by Robert Griesemer, Rob Pike, Ken Thompson since the end of 2007, and later joined by Ian Lance Taylor, Russ Cox and others. It was finally open sourced in November 2009 and released in early 2012. At that time, Go 1 stable version was released. The development of Go is now completely open and has an active community.
Go language features
Simple, fast, safe
Parallel, interesting, open source
Memory management, v array safety, fast compilation
Go language purpose
Go language is designed as a A systems programming language used on giant central servers that power web servers, storage clusters, or similar purposes.
For the field of high-performance distributed systems, Go language undoubtedly has higher development efficiency than most other languages. It provides massive parallel support, which is perfect for game server development.
The first Go program
Next we will write the first Go program hello.go (the extension of the Go language source file is .go), the code is as follows:
Instance
package main import "fmt" func main() { fmt.Println("Hello, World!") }
Run Instance»
Click the "Run Instance" button to view the online instance
Execute the above code output
$ go run hello.go Hello, World!