News for hackers. Stuff that matters.
Re:Trying Out Generics in Go by noisem4ker on Wednesday December 22, 2021 @06:15PM (#29656698)
A PathError can be identified using errors.Is as one of e.g. ErrNotExist or ErrPermission.

https://go.dev/src/os/error.go

You're absolutely not supposed to match the error string as it varies with the underlying operating system and locale.

There are no comments on this comment yet.