func errors.Is
70 uses
errors (current package)
wrap.go#L45: 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#L570: if errors.Is(err, errInvalidECHExt) {
database/sql
sql.go#L1353: if err := conn.resetSession(ctx); errors.Is(err, driver.ErrBadConn) {
sql.go#L1426: if err := ret.conn.resetSession(ctx); errors.Is(err, driver.ErrBadConn) {
sql.go#L1487: if !errors.Is(err, driver.ErrBadConn) {
sql.go#L1501: if !errors.Is(err, driver.ErrBadConn) && dc.expired(db.maxLifetime) {
sql.go#L1516: if errors.Is(err, driver.ErrBadConn) {
sql.go#L1583: if err == nil || !errors.Is(err, driver.ErrBadConn) {
sql.go#L2127: if errors.Is(err, driver.ErrBadConn) {
sql.go#L2320: if !errors.Is(err, driver.ErrBadConn) {
sql.go#L2352: if !errors.Is(err, driver.ErrBadConn) {
encoding/json
v2_stream.go#L232: if errors.Is(err, io.ErrUnexpectedEOF) && !export.IsIOError(err) {
encoding/json/v2
arshal_default.go#L872: errors.Is(err, jsontext.ErrNonStringName) && nillableLegacyKey && k.IsNil() {
arshal_default.go#L924: errors.Is(err, jsontext.ErrNonStringName) && nillableLegacyKey && k.IsNil() {
arshal_funcs.go#L147: if err := fnc(c, v, o); !errors.Is(err, errors.ErrUnsupported) {
arshal_funcs.go#L226: if errors.Is(err, errors.ErrUnsupported) {
arshal_funcs.go#L310: if errors.Is(err, errors.ErrUnsupported) {
arshal_methods.go#L281: if errors.Is(err, errors.ErrUnsupported) {
arshal_methods.go#L382: if errors.Is(err, errors.ErrUnsupported) {
errors.go#L316: if errors.Is(err, errors.ErrUnsupported) {
github.com/jackc/pgx/v5
tx.go#L430: if rollbackErr != nil && !errors.Is(rollbackErr, ErrTxClosed) {
go.pact.im/x/httpprocess
httpprocess.go#L29: if errors.Is(err, http.ErrServerClosed) {
go.pact.im/x/plumb/internal/cli
cli.go#L71: if errors.Is(err, flag.ErrHelp) {
go.pact.im/x/supervisor
supervisor.go#L147: if errors.Is(err, errInterrupt) {
go.uber.org/multierr
error.go#L242: if !errors.Is(e, target) {
golang.org/x/net/http2
http2.go#L333: if n == len(p) || nn == 0 || !errors.Is(err, os.ErrDeadlineExceeded) {
golang.org/x/tools/go/packages
packages.go#L394: if errors.Is(err, errNotHandled) {
golang.org/x/tools/internal/gocommand
invoke.go#L420: if err := killProcess(cmd); err != nil && !errors.Is(err, os.ErrProcessDone) && debug {
invoke_unix.go#L49: if errors.Is(err, syscall.ESRCH) {
google.golang.org/grpc
clientconn.go#L1357: if !errors.Is(err, context.Canceled) {
clientconn.go#L1583: case errors.Is(err, context.Canceled):
clientconn.go#L1585: case errors.Is(err, syscall.ECONNRESET):
clientconn.go#L1587: case errors.Is(err, syscall.ETIMEDOUT), errors.Is(err, context.DeadlineExceeded), errors.Is(err, os.ErrDeadlineExceeded):
clientconn.go#L1589: case errors.Is(err, syscall.ECONNABORTED):
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) {
mime/multipart
formdata.go#L245: 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#L700: if errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled) {
net/http
fs.go#L52: if errors.Is(originalErr, fs.ErrNotExist) || errors.Is(originalErr, fs.ErrPermission) {
fs.go#L772: if errors.Is(err, fs.ErrNotExist) {
fs.go#L775: if errors.Is(err, fs.ErrPermission) {
fs.go#L778: if errors.Is(err, errInvalidUnsafePath) {
net/http/httputil
reverseproxy.go#L842: if errors.Is(hijackErr, http.ErrNotSupported) {
net/http/internal/http2
client_conn_pool.go#L277: if !errors.Is(call.err, context.Canceled) && !errors.Is(call.err, context.DeadlineExceeded) {
http2.go#L334: if n == len(p) || nn == 0 || !errors.Is(err, os.ErrDeadlineExceeded) {
server.go#L609: if errors.Is(err, net.ErrClosed) {
transport.go#L2049: if errors.Is(err, io.EOF) {
transport.go#L2053: if errors.Is(err, io.ErrUnexpectedEOF) {
transport.go#L2057: if errors.Is(err, ErrFrameTooLarge) {
os
file.go#L472: } else if checkWrapErr && errors.Is(err, poll.ErrFileClosing) {
os/exec
exec.go#L821: } else if errors.Is(interruptErr, os.ErrProcessDone) {
exec.go#L853: } else if !errors.Is(killErr, os.ErrProcessDone) {
testing
testing.go#L2811: if err := os.Mkdir(artifactDir, 0o777); err != nil && !errors.Is(err, os.ErrExist) {