MCPcopy Create free account
hub / github.com/cogentcore/core / Is

Function Is

base/errors/stdlib.go:62–62  ·  view source on GitHub ↗

Is reports whether any error in err's tree matches target. The tree consists of err itself, followed by the errors obtained by repeatedly calling its Unwrap() error or Unwrap() []error method. When err wraps multiple errors, Is examines err followed by a depth-first traversal of its children. An e

(err, target error)

Source from the content-addressed store, hash-verified

60// an example in the standard library. An Is method should only shallowly
61// compare err and the target and not call [Unwrap] on either.
62func Is(err, target error) bool { return errors.Is(err, target) }
63
64// Join returns an error that wraps the given errors.
65// Any nil error values are discarded.

Callers 12

UpdateFontsAvailMethod · 0.92
TranspileConfigMethod · 0.92
RunCodeMethod · 0.92
InteractiveMethod · 0.92
loadSettingsFunction · 0.92
OpenMethod · 0.92
openRecentPathsFunction · 0.92
FileExistsFSFunction · 0.92
OnConfigMethod · 0.92
LinkerFlagsFunction · 0.92
mainFunction · 0.92
AutoSaveDeleteMethod · 0.92

Calls 1

IsMethod · 0.65

Tested by

no test coverage detected