func errors.As
7 uses
errors (current package)
wrap.go#L97: func As(err error, target any) bool {
crypto/tls
conn.go#L1594: if !errors.As(c.out.err, &a) {
handshake_server.go#L916: if errors.As(err, &x509.UnknownAuthorityError{}) {
handshake_server.go#L918: } 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) {
net
dnsclient_unix.go#L847: if errors.As(err, &dnsErr) && dnsErr.IsNotFound {
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |