func errors.Is
47 uses
errors (current package)
wrap.go#L44: func Is(err, target error) bool {
crypto/internal/sysrand
rand_getrandom.go#L47: if errors.Is(err, syscall.ENOSYS) {
rand_getrandom.go#L52: if errors.Is(err, syscall.EINTR) {
crypto/tls
ech.go#L573: if errors.Is(err, errInvalidECHExt) {
go.pact.im/x/httpprocess
httpprocess.go#L29: if errors.Is(err, http.ErrServerClosed) {
go.uber.org/multierr
error.go#L262: if errors.Is(err, target) {
golang.org/x/net/http2
client_conn_pool.go#L303: if !errors.Is(call.err, context.Canceled) && !errors.Is(call.err, context.DeadlineExceeded) {
http2.go#L337: if n == len(p) || nn == 0 || !errors.Is(err, os.ErrDeadlineExceeded) {
server.go#L773: if errors.Is(err, net.ErrClosed) {
transport.go#L2234: if errors.Is(err, io.EOF) {
transport.go#L2238: if errors.Is(err, io.ErrUnexpectedEOF) {
transport.go#L2242: if errors.Is(err, ErrFrameTooLarge) {
golang.org/x/tools/go/packages
packages.go#L392: if errors.Is(err, errNotHandled) {
golang.org/x/tools/internal/gocommand
invoke.go#L418: if err := cmd.Process.Kill(); err != nil && !errors.Is(err, os.ErrProcessDone) && debug {
google.golang.org/grpc/internal/backoff
backoff.go#L98: if errors.Is(err, ErrResetBackoff) {
google.golang.org/grpc/status
status.go#L155: if errors.Is(err, context.DeadlineExceeded) {
status.go#L158: if errors.Is(err, context.Canceled) {
gotest.tools/v3/assert/cmp
compare.go#L387: if errors.Is(actual, expected) {
gotest.tools/v3/internal/assert
result.go#L36: case errors.Is(err, source.ErrNotFound):
mime/multipart
formdata.go#L246: if e != nil && !errors.Is(e, os.ErrNotExist) && err == nil {
net
conf.go#L287: if canUseCgo && dnsConf.err != nil && !errors.Is(dnsConf.err, fs.ErrNotExist) && !errors.Is(dnsConf.err, fs.ErrPermission) {
conf.go#L304: if errors.Is(dnsConf.err, fs.ErrNotExist) {
conf.go#L355: if errors.Is(nss.err, fs.ErrNotExist) || (nss.err == nil && len(srcs) == 0) {
conf.go#L424: if err != nil && !errors.Is(err, fs.ErrNotExist) {
hosts.go#L70: if !errors.Is(err, fs.ErrNotExist) && !errors.Is(err, fs.ErrPermission) {
mptcpsock_linux.go#L44: case errors.Is(err, syscall.EPROTONOSUPPORT): // Not supported: >= v5.6
mptcpsock_linux.go#L46: case errors.Is(err, syscall.EINVAL): // Not supported: < v5.6
net.go#L693: if errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled) {
net/http
fs.go#L50: if errors.Is(originalErr, fs.ErrNotExist) || errors.Is(originalErr, fs.ErrPermission) {
fs.go#L765: if errors.Is(err, fs.ErrNotExist) {
fs.go#L768: if errors.Is(err, fs.ErrPermission) {
h2_bundle.go#L1028: if !errors.Is(call.err, context.Canceled) && !errors.Is(call.err, context.DeadlineExceeded) {
h2_bundle.go#L3814: if n == len(p) || nn == 0 || !errors.Is(err, os.ErrDeadlineExceeded) {
h2_bundle.go#L4823: if errors.Is(err, net.ErrClosed) {
h2_bundle.go#L9909: if errors.Is(err, io.EOF) {
h2_bundle.go#L9913: if errors.Is(err, io.ErrUnexpectedEOF) {
h2_bundle.go#L9917: if errors.Is(err, http2ErrFrameTooLarge) {
net/http/httputil
reverseproxy.go#L757: if errors.Is(hijackErr, http.ErrNotSupported) {
os
file.go#L455: } else if checkWrapErr && errors.Is(err, poll.ErrFileClosing) {
os/exec
exec.go#L802: } else if errors.Is(interruptErr, os.ErrProcessDone) {
exec.go#L834: } else if !errors.Is(killErr, os.ErrProcessDone) {