Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Go language tutorial


May 11, 2021 Go


Table of contents


Go language tutorial

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

Go was developed in late 2007 under the auspices of Robert Griesemer, Rob Pike, Ken Thompson, and later joined the likes of Ian Lance Taylor, Russ Cox, and finally opened source in November 2009 and released a stable version of Go 1 in early 2012. Now Go's development is completely open and has an active community.




Go language features

  • Simple, fast and safe
  • Parallel, fun, open source
  • Memory management, v array security, compilation is fast

Go language use

The Go language is designed as a system programming language for giant central servers with Web servers, storage clusters, or similar purposes.

The Go language is undoubtedly more efficient to develop than most other languages in the field of high-performance distributed systems. It provides a huge amount of parallel support, which is great for game service development.


The first Go program

Let's write the first Go program, hello.go (the extension of the Go language source file is .go), and the code is as follows:

package main

import "fmt"

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

Execute the above code output

$ go run hello.go 
Hello, World!