MCPcopy
hub / github.com/apache/devlake / As

Function As

backend/core/errors/util.go:28–30  ·  view source on GitHub ↗

As convenience passthrough for the native errors.As method

(err error, target any)

Source from the content-addressed store, hash-verified

26
27// As convenience passthrough for the native errors.As method
28func As(err error, target any) bool {
29 return errors.As(err, &target)
30}
31
32func Must(err error) {
33 if err != nil {

Callers

nothing calls this directly

Calls 1

AsMethod · 0.65

Tested by

no test coverage detected