Change errors to use xerrors package.

This commit is contained in:
2025-05-12 20:37:58 +03:00
parent a823f5abc3
commit ad224a328e
7 changed files with 39 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
package gopher
import "github.com/antanst/go_errors"
import "errors"
// GopherError is an error encountered while
// visiting a Gopher host, and is only for
@@ -26,5 +26,5 @@ func IsGopherError(err error) bool {
return false
}
var asError *GopherError
return go_errors.As(err, &asError)
return errors.As(err, &asError)
}