2 ms·
A PathError can be identified using errors.Is as one of e.g. ErrNotExist or ErrPermission. https://go.dev/src/os/error.go https://go.dev/src/os/error.go You'r
by noisem4ker 5y ago
A PathError can be identified using errors.Is as one of e.g. ErrNotExist or ErrPermission.
https://go.dev/src/os/error.go 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.