TechnologyProgramming language

Go

Also known as: Golang

Statically typed, compiled programming language designed at Google for simplicity, fast builds and built-in concurrency, widely used for cloud software.

Go, often called Golang after its former website domain, is a compiled, statically typed programming language with a deliberately small feature set. It offers garbage collection, a fast compiler that produces single self-contained binaries, a standard formatting tool and a rich standard library for networking and web services. Its signature feature is lightweight concurrency: goroutines are independently scheduled functions that are cheap to create, and channels let them communicate safely, an approach inspired by Tony Hoare's communicating sequential processes.

Robert Griesemer, Rob Pike and Ken Thompson began designing Go at Google in 2007, frustrated by slow builds and complexity in large C++ codebases. Google announced it as an open-source project in November 2009, and Go 1.0, released in March 2012, came with a promise of backward compatibility that the project has kept. Generics, long requested by users, were added in Go 1.18 in 2022. The language is distributed under a BSD-style license.

Go became the language of much cloud infrastructure: Docker, Kubernetes, Terraform and Prometheus are all written in it, and it is common for network services, command-line tools and DevOps tooling. Supporters value its readability, quick compilation and straightforward deployment. Critics have pointed to verbose error handling and, before generics, limited abstraction. Its design reflects a philosophy that simplicity helps large teams, in contrast to feature-rich languages such as Rust or C++.

Key points

  • Go compiles to single self-contained binaries, simplifying deployment.
  • Goroutines and channels provide built-in support for concurrent programming.
  • Robert Griesemer, Rob Pike and Ken Thompson designed Go at Google beginning in 2007.
  • Docker, Kubernetes and Terraform are written in Go.

Related entries

Person

Ken Thompson

ProgrammingFOSS

American computer scientist who created the Unix operating system and the B language and later co-designed the UTF-8 encoding and the Go language.

Glossary term

Concurrency

Programming

Ability of a program or system to make progress on several tasks during overlapping time periods, whether or not they literally run simultaneously.

Glossary term

Automatic memory management in which a language runtime finds and reclaims memory occupied by objects a program can no longer use.

Technology

Docker Engine

DevOpsFOSS

Open-source container runtime and toolset that builds, ships and runs applications in isolated Linux containers from portable images.

Technology

Kubernetes

DevOpsFOSS

Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.

Organization

Linux Foundation organization that hosts Kubernetes and other cloud native open-source projects and promotes their adoption.

Glossary term

Compiler

Programming

Program that translates source code written in one programming language, usually a high-level one, into another form such as machine code.

Technology

Terraform

DevOps

Infrastructure-as-code tool from HashiCorp that provisions cloud and on-premises resources from declarative configuration files.

Referenced by

Other entries that discuss or point to Go.