Go (often called Golang) is a statically typed, compiled, garbage-collected programming language created at Google by Robert Griesemer, Rob Pike, and Ken Thompson. They began designing it in September 2007 and announced it as open source in November 2009. It was created because they found large-scale server software at Google slow to build, hard to read, and painful to make concurrent in C++ and Java, so they wanted a language with fast compilation, simple syntax, and built-in concurrency.
Go 1.0 followed in March 2012 with a promise of backward compatibility for Go 1 programs, which still largely holds today.
The designers worked on very large code bases on shared build systems and multicore servers. Three frustrations shaped the language.
| Problem at Google | Go's answer |
|---|---|
| Builds of large C++ programs took many minutes, partly because of header files and transitive dependencies. | A fast compiler and a package system where each import is explicit and unused imports are errors. |
| Writing correct concurrent network services with threads, locks, and callbacks was hard. | Goroutines, channels, and select as part of the language. |
| Code bases grew complex through deep inheritance, templates, and many ways to do the same thing. | A small language specification, one standard formatter (gofmt), and composition instead of inheritance. |
Go was therefore not designed to be the most expressive language. It was designed so that many engineers can read, change, and deploy each other's code quickly.
| Year | Milestone |
|---|---|
| 2007 | Design starts at Google. |
| 2009 | Go announced as an open-source project. |
| 2012 | Go 1.0 released with the Go 1 compatibility promise. |
| 2018 | Go modules introduced (Go 1.11) for dependency management. |
| 2022 | Generics added in Go 1.18. |
| 2023 | log/slog structured logging in the standard library (Go 1.21). |
| 2024 | Per-iteration loop variables (Go 1.22) and range-over-function iterators (Go 1.23). |
Go has a regular release cadence of two major versions a year, and the project supports the two most recent releases with fixes.
go build compiles even large projects quickly and produces a single statically linked binary by default, so deploying a service can be as simple as copying one file into a minimal container image.
Cross-compiling needs only those two environment variables.
A goroutine is a lightweight function execution managed by the Go runtime, not by the operating system. Channels let goroutines pass values safely.
The three goroutines run concurrently, and the final goroutine closes the channel when all workers finish so the range loop ends. The order of output is not guaranteed. Since Go 1.22 each loop iteration has its own name variable, so this closure is safe without copying it.
Go has no class inheritance, no exceptions, and no implicit numeric conversions. Errors are ordinary values returned from functions. The standard toolchain includes gofmt, go vet, go test with benchmarking and fuzzing, a race detector (go test -race), and go doc. Generics were added in Go 1.18 only after years of discussion, with a deliberately restrained design.
| Aspect | Go | C++ | Java |
|---|---|---|---|
| Memory | Garbage collected | Manual or RAII | Garbage collected |
| Concurrency | Goroutines and channels | Threads, async libraries | Threads, virtual threads (Java 21+) |
| Inheritance | None, uses interfaces and embedding | Multiple inheritance | Single class inheritance |
| Build output | One static binary | Native binary, many link options | Bytecode needing a JVM |
| Error handling | Returned error values | Exceptions, error codes | Exceptions |
Go interfaces are satisfied implicitly: any type with the right methods implements an interface without declaring it, which keeps packages loosely coupled.
The official name is Go. The website domain golang.org (now go.dev) led people to say "Golang", and the term is useful when searching because "go" is a common word.
Not directly. Its designers aimed it at the same kind of server software where they used C++, but with much faster builds, safer memory, and simpler concurrency. It is not suited to every use C and C++ cover, such as hard real-time or very low-level code.
Go has types with methods, interfaces, and embedding, but no classes or inheritance. Most developers describe it as supporting object-oriented style through composition.
Yes. Go is open source with contributors from many companies, and the Go team at Google leads releases through a public proposal process.
Go was created at Google to fix slow builds, tangled concurrency, and complexity in large server code bases. Its answers are a fast compiler, static binaries, goroutines and channels, a small language, and consistent tooling. Since Go 1.0 in 2012 it has added modules, generics, structured logging, and iterators while keeping the language compatible and simple.