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 at the end of 2007, and later joined Ian Lance Taylor, Russ Cox and others, and finally opened source in November 2009, and released a stable version of Go 1in early 2012. Now the development of Go is completely open and has an active community.

2.1.1. Go language features #
Concise, fast and safe
Parallel, interesting, open source
Memory management, array security, fast compilation
2.1.2. Go language usage #
The
Go
language is designed to be used in carrying
Web
system programming language for servers, storage clusters or giant central servers for similar purposes.
For the field of high-performance distributed systems
Go
languages are undoubtedly more efficient than most other languages. It provides massive support for parallelism, which is great for game server development.
2.1.3. The first Go program #
Next, let’s write the first
Go
program
hello.go
(
Go
extension of the language source file is
.go
), the code is as follows:
2.1.4.
hello.go
file #
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
To execute
Go
language code can be used
go
run
orders.
Execute the above code output:
$ go run hello.go
Hello, World!
In addition, we can also use
go
build
command to generate binaries:
$ go build hello.go
$ ls
hello hello.go
$ ./hello
Hello, World!