The idiomatic way to propagate errors in Go is using the predefined type error. Yet Go’s standard library only provides very rudimentary constructors for error objects, errors.New() and fmt.Errorf(). This article introduces how the CockroachDB errors library, a drop-in replacement to Go’s own errors package, expands …