Go (programming language)

term

programming

Kept in this browser · My desk

The compiled, garbage-collected language Robert Griesemer, Rob Pike and Ken Thompson began sketching at Google on 21 September 2007, open source since 10 November 2009, with Go 1 on 28 March 2012.

The Go project's frequently asked questions (FAQ) page names its ancestors: the C family for syntax, Pascal/Modula/Oberon for declarations and packages, and Newsqueak and Limbo, inspired by Hoare's Communicating Sequential Processes (CSP), for concurrency; go1.27.0 was released on 19 August 2026.

What it is. Go is a compiled, statically typed language whose specification describes it as "a general-purpose language designed with systems programming in mind", "strongly typed and garbage-collected", with "explicit support for concurrent programming". Programs are built from packages, the syntax is compact and simple to parse so that tools can analyse it, and the language reserves only 25 keywords. A type implements an interface simply by implementing its methods, with no implements declaration, a kind of structural typing, and since Go 1.18 the language has generics.

Origin. The Go project's frequently asked questions (FAQ) page dates the first sketch to 21 September 2007, by Robert Griesemer, Rob Pike and Ken Thompson at Google, and names its ancestors: the C family for syntax, Pascal, Modula and Oberon for declarations and packages, and Newsqueak and Limbo, inspired by Tony Hoare's Communicating Sequential Processes (CSP), for concurrency. Google open-sourced it on 10 November 2009 (the announcement was signed by Griesemer, Pike, Thompson, Ian Taylor, Russ Cox, Jini Kim and Adam Langley). The FAQ says Go "was born out of frustration with existing languages and environments": one had to choose efficient compilation, efficient execution or ease of programming, and programmers were trading safety and efficiency for ease by moving from C++ and Java to Python and JavaScript, so Go tried to combine the ease of an interpreted, dynamically typed language with the efficiency and safety of a statically typed, compiled one, adapted to networked and multicore hardware. Rob Pike's 2012 talk framed it as language design in the service of software engineering at Google's scale, answering problems he listed such as slow builds and uncontrolled dependencies.

How it works. Goroutines multiplex independently executing functions onto a set of threads; when one blocks, for example in a system call, the runtime moves the others to another thread. Channels pass values between them. Go's goroutines and channels put CSP-style concurrency in the mainstream ("Do not communicate by sharing memory. Instead, share memory by communicating"). The Go memory model guarantees that programs free of data races behave as if their goroutines were multiplexed onto one processor, a property known as data-race-free sequential consistency (DRF-SC), and defines a data race as a write to a memory location concurrent with another read or write of it, unless all accesses are atomic. The go command builds, runs and tests programs (go build, go run, go test).

Standards and status. Go has no International Organization for Standardization (ISO) standard; the specification on go.dev defines it (language version go1.27, dated 26 May 2026). Go 1 was released on 28 March 2012 with a compatibility promise: programs written to the Go 1 specification will continue to compile and run correctly, unchanged, over its lifetime, at source level, with exceptions for security fixes. Go 1.18 (15 March 2022) brought generics, which the team called its biggest change ever to the language, and made Go the first major language with fuzzing fully integrated into its standard toolchain. Major releases come twice a year (Go 1.22 in February and Go 1.23 in August 2024, in the team's account): go1.27.0 was released on 19 August 2026, and go1.27.4 on 10 November 2026 with security fixes to cgo, the go command, the compiler, the linker and net/http.

Where it shows up. Its team calls it the language of the modern cloud, and in November 2024 said its user base had more than tripled in five years, making it a top 10 language; Microsoft ported the TypeScript compiler to it in 2025 (Anders Hejlsberg announced the native port on 11 March 2025, aiming to cut most build times by 10x). Security teams meet it on both sides: in the infrastructure they defend and in the dependency trees they must audit.

What goes wrong. The type system has a declared exit: the built-in package unsafe provides low-level operations "that violate the type system", and the specification says a package using it "must be vetted manually for type safety". The language also fixed a famous trap of its own: Go 1.22 (February 2024) made variables introduced by for loops scoped per iteration rather than per loop, addressing what the team calls a long-standing language gotcha. And Go is memory-safe only for race-free programs: its memory model warns that races on multiword values such as interfaces, maps, slices and strings "can in turn lead to arbitrary memory corruption". The race detector, enabled with the -race flag on go test, go run or go build, finds them at run time at a cost of 5 to 10 times the memory and 2 to 20 times the execution time. For dependencies, the Go vulnerability database and the govulncheck command report only the known vulnerabilities whose functions a program actually reaches through its call graph, which its authors call a low-noise, reliable signal.

Neighbours. C and Pascal, its ancestors; Ken Thompson; Rust, its contemporary rival in systems work; TypeScript, whose compiler it now hosts; race conditions and memory safety; compilers and programming paradigms.

Also known as: go, golang, goroutine

Sources

← Back to G Back to the glossary