Go: The Language That Chose Simplicity and Conquered Modern Infrastructure

Automated English translation of the original Spanish article. Code examples keep their original identifiers.

In the late 2000s, compiling a large codebase at Google could take minutes—and sometimes significantly longer. Multiply that wait across an entire team of engineers, and you suddenly have an expensive, frustrating bottleneck that eats away at productivity. To make matters worse, as projects grew, the software became increasingly difficult to read and maintain.

Go was born out of that very practical context, not in an academic laboratory. It was designed by Robert Griesemer, Rob Pike, and Ken Thompson, and their goal was never to create the most expressive or theoretically innovative language on paper. They aimed for something more modest and, above all, more useful: solving real-world productivity and scalability problems in large-scale systems.

In this article, we’ll review the key decisions that define Go (including the features intentionally left out) and why it became a fundamental pillar of modern infrastructure.

Simplicity as a Design Decision

Go is intentionally small. Instead of continually piling on increasingly complex syntactic features, it sticks to a minimal set of building blocks. Because of this, a developer with experience in other languages can become productive within days, not weeks.

The logic is straightforward: the fewer unnecessary abstractions there are, the easier it becomes to read, understand, and maintain code written by others. In large teams and codebases that live for years, readability ceases to be an aesthetic detail and turns into a true competitive advantage.

Goroutines: Concurrency Almost for Free

The concurrency model is one of Go’s greatest contributions. Instead of relying on heavy operating system threads, the language provides goroutines: lightweight execution units launched simply by prefixing a function call with the go keyword.

go procesarTarea(datos)

With just that one word, the function starts executing concurrently. The Go runtime handles multiplexing goroutines onto a small number of OS threads, making it possible to run thousands (or even hundreds of thousands) of simultaneous tasks with minimal memory and resource overhead.

Launching a thousand tasks at once is as simple as a loop. And with sync.WaitGroup, we can wait for all of them to finish:

var wg sync.WaitGroup

for i := 1; i <= 1000; i++ {
    wg.Add(1)
    go func(id int) {
        defer wg.Done()
        procesarTarea(id)
    }(i)
}

wg.Wait() // bloquea hasta que terminen las 1000 goroutines

Channels: Communicate Instead of Sharing

Spawning thousands of goroutines is of little use without a clean way to coordinate them. That’s where channels come in, inspired by Tony Hoare’s Communicating Sequential Processes (CSP) model. They allow goroutines to exchange data safely and in a decoupled way.

resultados := make(chan string)

go func() {
    resultados <- procesarTarea(datos) // envía el resultado por el canal
}()

fmt.Println(<-resultados) // espera y recibe

The underlying philosophy was summarized by Rob Pike in a quote that has become a well-known Go proverb:

“Don’t communicate by sharing memory; share memory by communicating.”

In practice: instead of synchronizing access to shared memory (a frequent source of hard-to-reproduce bugs), goroutines explicitly pass messages to one another. The result is concurrent code that is more predictable and much easier to reason about.

A very common pattern is the worker pool: multiple goroutines pull work from a shared channel and send their results through another.

func worker(tareas <-chan int, resultados chan<- int) {
    for t := range tareas {
        resultados <- t * 2
    }
}

func main() {
    tareas := make(chan int, 100)
    resultados := make(chan int, 100)

    for w := 0; w < 3; w++ {
        go worker(tareas, resultados)
    }

    for i := 1; i <= 10; i++ {
        tareas <- i
    }
    close(tareas)

    for i := 1; i <= 10; i++ {
        fmt.Println(<-resultados)
    }
}

And with select, we can wait on multiple channels simultaneously—for example, to enforce a timeout:

select {
case r := <-resultados:
    fmt.Println("listo:", r)
case <-time.After(2 * time.Second):
    fmt.Println("tiempo agotado")
}

What Go Chose to Leave Out

Go’s identity is defined just as much by what it omits as by what it includes:

  • No classes or inheritance. Data and behavior are organized using structs and interfaces, favoring composition over inheritance.
  • No exceptions (try/catch). Errors are explicit return values and form part of the program’s normal control flow. This forces developers to handle them consciously and visibly.
  • No generics in the original design. They arrived years later, with Go 1.18. Omitting them initially was a deliberate choice to preserve lightning-fast compilation times and compiler simplicity.

Here is how error handling looks in practice:

datos, err := leerArchivo(ruta)
if err != nil {
    return err
}

Instead of inheritance, Go uses interfaces that are satisfied implicitly: any type that implements the required methods satisfies the interface, without ever needing an explicit implements declaration.

type Notificador interface {
    Enviar(mensaje string) error
}

type Email struct{ Destino string }

func (e Email) Enviar(mensaje string) error {
    fmt.Println("Email a", e.Destino+":", mensaje)
    return nil
}

func avisar(n Notificador) error {
    return n.Enviar("Despliegue completado")
}

And generics, available since Go 1.18, look like this:

func Mapear[T, U any](items []T, f func(T) U) []U {
    resultado := make([]U, 0, len(items))
    for _, it := range items {
        resultado = append(resultado, f(it))
    }
    return resultado
}

None of these omissions were oversights. They were deliberate trade-offs to keep the language predictable and the compiler fast—tackling the exact problems that inspired Go’s creation in the first place.

gofmt and Readability at Scale

Go includes an official automated formatting tool called gofmt, which virtually eliminates style debates across teams. Because the entire ecosystem formats code with the same tool, Go code looks remarkably consistent everywhere, significantly reducing the cognitive effort required to read someone else’s code.

Formatting an entire project takes a single command:

gofmt -w .

When you put the pieces together—a compact language, explicit error handling, uniform styling, and minimal abstractions—the combined effect is that a newcomer can read unfamiliar or legacy code relatively quickly, even in sprawling projects. When software has to endure for years and pass through dozens of hands, that value is immense.

Where Go Shines

Go has firmly established itself in three primary domains:

  • Backend services requiring high performance and low latency.
  • Command-line interface (CLI) tools, thanks to how easily it produces self-contained binaries.
  • Cloud infrastructure, where its networking efficiency and concurrency model fit naturally.

The most prominent examples are Docker and Kubernetes, two cornerstones of modern infrastructure written in Go. Compiling to a single static binary with no external dependencies greatly simplifies deployment and distribution—one of the main reasons so many infrastructure tools choose it.

A minimal web service fits into just a few lines using only the standard library:

package main

import (
    "fmt"
    "net/http"
)

func main() {
    http.HandleFunc("/salud", func(w http.ResponseWriter, r *http.Request) {
        fmt.Fprintln(w, "ok")
    })
    http.ListenAndServe(":8080", nil)
}

And building a static binary for Linux from any operating system requires just a single line:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o miservicio

What Go Delivers

Go doesn’t compete for maximum expressiveness or feature bloat. Its proposition is pragmatic: delivering productivity when code needs to scale, last for years, and be read by many people.

Born out of a tangible need at Google, it went on to become one of the most critical tools for building today’s software infrastructure. In an industry where complexity quietly accumulates, Go continues to prove that, sometimes, less really is more.