Standard Library

GoErrors

Go stdlib package — errors. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.As()Neutral
#
Signature
As(err error, target any) bool

As finds the first error in err's tree that matches target, and if one is found, sets

.Is()Neutral
#
Signature
Is(err error, target error) bool

Is reports whether any error in err's tree matches target.

.Join()Neutral
#
Signature
Join(errs error) error

Join returns an error that wraps the given errors.

.New()Neutral
#
Signature
New(text string) error

New returns an error that formats as the given text.

.Unwrap()Neutral
#
Signature
Unwrap(err error) error

Unwrap returns the result of calling the Unwrap method on err, if err's

Fully-Qualified Names

FQNField
errorsfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # errors