MCPcopy
hub / github.com/go-task/task / Is

Function Is

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

Is wraps the standard errors.Is function so that we don't need to alias that package.

(err, target error)

Source from the content-addressed store, hash-verified

58
59// Is wraps the standard errors.Is function so that we don't need to alias that package.
60func Is(err, target error) bool {
61 return errors.Is(err, target)
62}
63
64// As wraps the standard errors.As function so that we don't need to alias that package.
65func As(err error, target any) bool {

Callers 10

readTaskfileMethod · 0.92
isContextErrorFunction · 0.92
promptDepsVarsMethod · 0.92
promptTaskVarsMethod · 0.92
RunTaskMethod · 0.92
GetConfigFunction · 0.92
NewFileNodeFunction · 0.92
includeMethod · 0.92
readRemoteNodeContentMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected