func errors.AsType
11 uses
errors (current package)
wrap.go#L167: func AsType[E error](err error) (E, bool) {
crypto/tls
conn.go#L1588: a, ok := errors.AsType[alert](c.out.err)
handshake_server.go#L984: if _, ok := errors.AsType[x509.UnknownAuthorityError](err); ok {
handshake_server.go#L986: } else if errCertificateInvalid, ok := errors.AsType[x509.CertificateInvalidError](err); ok && errCertificateInvalid.Reason == x509.Expired {
quic.go#L384: if _, ok := errors.AsType[AlertError](err); ok {
quic.go#L387: a, ok := errors.AsType[alert](err)
encoding/json
v2_inject.go#L49: if err, ok := errors.AsType[*internal.ValueError](err.Err); ok {
go.pact.im/x/flaky
permanent.go#L35: return errors.AsType[*PermanentError](err)
go.pact.im/x/goupdate
tests.go#L62: if _, ok := errors.AsType[*exec.ExitError](err); ok {
go.pact.im/x/httprange
bytes.go#L100: if e, ok := errors.AsType[*UnsatisfiedRangeError](err); ok {
net
dnsclient_unix.go#L874: if dnsErr, ok := errors.AsType[*DNSError](err); ok && dnsErr.IsNotFound {