gograph_errors
Find all explicit error creation points (errors.New, fmt.Errorf, sentinel definitions) in your Go codebase. Helps audit error taxonomies and standardize error handling.
Instructions
Locate all explicit error creation points (errors.New, fmt.Errorf, sentinel definitions) inside the codebase. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when auditing error taxonomies, cataloging error codes, or standardizing error handling. Do NOT use to trace propagation paths (use gograph_errorflow instead). COMPLETENESS: Returns a structured checklist of all matched error creation spots, showing their file and line coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | Optional keyword to filter the returned error structures (e.g., 'ErrInvalid', 'unauthorized') |