Go
An open-source programming language from Google, known for simple syntax, fast compilation and built-in concurrency.
In more detail
Go is statically typed and compiled, with a small syntax and a large standard library. Many infrastructure tools, including Docker, Kubernetes, Terraform and Prometheus, are written in it. Its informal name Golang comes from its old web address.
Examples
go version # prints go version go1.23.12 linux/arm64go version # go version go1.23.12 linux/arm64In this course: Go ships a testing package in its standard library, and the go test command runs any function named TestXxx in files ending _test.go. Its test tools are built in rather than installed separately.Related terms
- go command — The single command-line program that ships with Go and builds, runs, tests, formats and documents your code through subcommands.
- compiler — A program that translates source code a person wrote into a form a machine or runtime can execute, checking it for errors on the way.
- static binary — A program file that carries all the code it needs inside it and loads no shared libraries from the machine it runs on.
- goroutine — A function running concurrently with the rest of a Go program, started by putting the go keyword before a call.
- Go standard library — The set of packages that ships with Go itself, such as fmt, os, io, net/http, encoding/json and testing.
- Go testing package — Go's standard library package for writing tests, run by the go test command.
- test framework — A library and set of conventions for writing, organising and running automated tests in a language.
Taught in
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Installing the Go Toolchain — Concurrent Systems Programming with Go
- Go Workspaces and Modules — Concurrent Systems Programming with Go
- Your First Program and go run — Concurrent Systems Programming with Go
- Structs and Methods — Concurrent Systems Programming with Go
- Interfaces and Why They Are Implicit — Concurrent Systems Programming with Go
- Errors as Values — Concurrent Systems Programming with Go
- The Standard testing Package — Concurrent Systems Programming with Go
- The Test Pyramid And Where It Is Wrong — Automated Testing, TDD & Quality Engineering
- Introducing pytest — Automated Testing, TDD & Quality Engineering