MCPcopy Index your code
hub / github.com/go-task/task / As

Function As

errors/errors.go:65–67  ·  view source on GitHub ↗

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

(err error, target any)

Source from the content-addressed store, hash-verified

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 {
66 return errors.As(err, target)
67}
68
69// Unwrap wraps the standard errors.Unwrap function so that we don't need to alias that package.
70func Unwrap(err error) error {

Callers 4

getRootNodeMethod · 0.92
RunTaskMethod · 0.92
runCommandMethod · 0.92
readNodeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected