Golang

Articles about Golang — Programming languages.

Golang · 10/15/2026 · 10 min read · 107

Table-driven tests in Go

How to write table-driven tests in Go with slice structs, t.Run, error checking, parallel execution and struct comparison using go-cmp, plus common pitfalls.