News for hackers. Stuff that matters.
Re:Gopher Wrangling. Effective error handling in Go by throwaway894345 on Wednesday June 21, 2023 @02:34PM (#36422452)
As others have mentioned, this isn't true. `errors.Is` is for named error instances (like `io.EOF`) while `errors.As` is for matching against a particular type of error (like `net/url.Error`). `fmt.Errorf()` doesn't inhibit either case.

https://go.dev/play/p/zsks73MGZjc

There are no comments on this comment yet.