This writeup is part of the prologue to a series of articles that talk about the “CockroachDB errors library”, which is really a general-purpose, open source replacement for Go’s standard errors package. Consider for example the following piece of code: import "fmt" type T struct { x int } func main …