The Go Programming Language
Go (Golang) is a compiled, statically typed language created at Google. It is valued for its simple syntax, fast compilation, built-in garbage collector and a convenient concurrency model.
Hello, World
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
Concurrency in Go
The core idea of Go: "Do not communicate by sharing memory; instead, share memory by communicating."
- Goroutines — lightweight threads of execution.
- Channels — safe data passing between goroutines.
- The sync package — WaitGroup, Mutex, Once and other primitives.
Useful links
- go.dev — the official website
- A Tour of Go — an interactive tutorial
- Effective Go