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

Function New

errors/errors.go:55–57  ·  view source on GitHub ↗

New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical. This wraps the standard errors.New function so that we don't need to alias that package.

(text string)

Source from the content-addressed store, hash-verified

53// a distinct error value even if the text is identical. This wraps the standard
54// errors.New function so that we don't need to alias that package.
55func New(text string) error {
56 return errors.New(text)
57}
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 {

Callers 12

itemsFromForFunction · 0.92
precondition.goFile · 0.92
logger.goFile · 0.92
PromptMethod · 0.92
exec.goFile · 0.92
ValidateFunction · 0.92
input.goFile · 0.92
SelectMethod · 0.92
releaseFunction · 0.92
changelogFunction · 0.92
NewNodeFunction · 0.92
taskfile.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected