Docker, Kubernetes, Terraform, Prometheus, etcd, Hugo, Caddy, Grafana and CockroachDB are among the best-known open source projects written in Go. Most of them are cloud, container or infrastructure tools, because Go compiles to a single static binary, handles concurrency well and cross-compiles easily.
Go was created at Google and released as open source in 2009. Its first big wave of adoption came with Docker in 2013 and Kubernetes in 2014, and the language has been closely tied to cloud-native software ever since.
A few language traits explain the pattern:
go build produces one executable with no runtime to install, which suits agents, CLIs and container images.GOOS and GOARCH builds for Linux, macOS, Windows and ARM from one machine.| Project | What it does |
|---|---|
| Docker (Moby) | Builds and runs containers; the engine, CLI and Compose v2 are written in Go |
| containerd | Container runtime used by Docker and by most Kubernetes clusters |
| Kubernetes | Container orchestration: scheduling, scaling, self-healing and service discovery |
| Podman | Daemonless container engine that is largely compatible with the Docker CLI |
| Helm | Package manager for Kubernetes applications |
| Argo CD and Flux | GitOps controllers that sync cluster state from Git |
| Istio and Linkerd (control planes) | Service meshes; Istio's control plane is Go, Linkerd's data plane is Rust |
Kubernetes is the clearest example. Its controllers are Go programs that watch the API server and reconcile the desired state with the actual state, and the client-go library lets you write your own controllers and operators in the same way.
A typical Prometheus configuration scrapes a Go service that exposes metrics:
Run it and open http://localhost:2112/metrics to see the default Go runtime and process metrics.
gopls, is written in Go.gh), kubectl, k9s and lazygit are Go command line tools.golangci-lint, staticcheck and Delve are Go tools for Go developers.Reading well-run Go code bases is a good way to learn idiomatic patterns. Start with smaller, focused projects such as chi, cobra or etcd's client libraries, then move to Kubernetes client-go examples. Look at how they structure packages, define interfaces at the consumer side, handle errors with errors.Is and errors.As, and pass context.Context through call chains.
Yes. The Docker Engine, the CLI and Docker Compose v2 are written in Go. Many parts of the container ecosystem, such as containerd, are Go too.
Yes. Kubernetes was written in Go from the beginning, and its client libraries and operator frameworks, such as client-go and controller-runtime, are Go packages.
Terraform changed to the Business Source License in 2023, which is source-available but not open source by the usual definition. OpenTofu is the open source fork.
They could be used, but they need a runtime installed on the target machine. Go's single static binary and low memory use make deployment simpler for agents and command line tools.
Many of the tools that run modern infrastructure, including Docker, Kubernetes, etcd, Prometheus, Grafana, Caddy and Hugo, are written in Go. The language's static binaries, concurrency model and fast tooling explain why. Check each project's current license before adopting it, as Terraform, Vault and Consul show.