func errors.AsType
7 uses
errors (current package)
wrap.go#L167: func AsType[E error](err error) (E, bool) {
crypto/tls
conn.go#L1589: a, ok := errors.AsType[alert](c.out.err)
handshake_server.go#L981: if _, ok := errors.AsType[x509.UnknownAuthorityError](err); ok {
handshake_server.go#L983: } else if errCertificateInvalid, ok := errors.AsType[x509.CertificateInvalidError](err); ok && errCertificateInvalid.Reason == x509.Expired {
quic.go#L385: if _, ok := errors.AsType[AlertError](err); ok {
quic.go#L388: a, ok := errors.AsType[alert](err)
net
dnsclient_unix.go#L845: if dnsErr, ok := errors.AsType[*DNSError](err); ok && dnsErr.IsNotFound {
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)