Introduction to Golang

Go is an open source programming language that makes it easy to construct simple, reliable, and efficient software.

Go was developed in late 2007 by Robert Griesemer, Rob Pike, Ken Thompson, and later joined by Ian Lance Taylor, Russ Cox and others, and was finally open sourced in November 2009, and Go 1 stable was released in early 2012 Version. Go development is now fully open and has an active community.

Go language features

concise, fast, safe
parallel , fun, open source
memory management, v-array safety, fast compilation

Go language usage

The Go language was designed as a systems programming language for hosting web servers, storage clusters, or giant central servers for 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, let's write the first Go program hello.go (the extension of the Go language source file is .go), the code is as follows:

package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324933744&siteId=291194637