4 ms·
Recently the Go team introduced the xerrors package for improved error management: https://godoc.org/golang.org/x/xerrors https://godoc.org/golang.org/x/xerrors
by mikeschinkel 7y ago
Recently the Go team introduced the xerrors package for improved error management: https://godoc.org/golang.org/x/xerrors https://godoc.org/golang.org/x/xerrors
So using these functions is becoming part of what good Go programmers do.