func errors.As
23 uses
errors (current package)
wrap.go#L97: func As(err error, target any) bool {
crypto/tls
conn.go#L1601: if !errors.As(c.out.err, &a) {
handshake_server.go#L969: if errors.As(err, &x509.UnknownAuthorityError{}) {
handshake_server.go#L971: } else if errors.As(err, &errCertificateInvalid) && errCertificateInvalid.Reason == x509.Expired {
quic.go#L363: if errors.As(err, &ae) {
quic.go#L367: if !errors.As(err, &a) {
github.com/jackc/pgx/v5
conn.go#L361: if errors.As(err, &pErr) {
github.com/jackc/pgx/v5/pgconn
config.go#L543: if urlErr := new(url.Error); errors.As(err, &urlErr) {
errors.go#L16: if errors.As(err, &retryableErr) {
errors.go#L26: return errors.As(err, &timeoutErr)
errors.go#L140: if errors.As(err, &netErr) && netErr.Timeout() {
pgconn.go#L272: if errors.As(err, &pgErr) {
pgconn.go#L289: if errors.As(err, &npErr) {
pgconn.go#L591: if errors.As(err, &netErr) && netErr.Timeout() {
pgconn.go#L601: isNetErr := errors.As(err, &netErr)
pgconn.go#L2855: if !errors.As(err, &pgErr) {
go.pact.im/x/flaky
permanent.go#L36: ok := errors.As(err, &e)
go.pact.im/x/goupdate
tests.go#L63: case errors.As(err, &exit):
go.pact.im/x/httprange
bytes.go#L101: if errors.As(err, &e) {
google.golang.org/grpc/internal/transport
http_util.go#L381: return errors.As(err, &ioError{})
google.golang.org/grpc/status
status.go#L113: if errors.As(err, &gs) {
google.golang.org/protobuf/proto
encode.go#L201: if errors.As(err, &mismatch) {
net
dnsclient_unix.go#L846: if errors.As(err, &dnsErr) && dnsErr.IsNotFound {