gograph_orphans
Identify orphan functions and methods unreachable from entry points in Go codebases. Use for dead-code audits to safely delete unused code.
Instructions
Find all functions and methods unreachable from any entry point (main functions, exported symbols, HTTP route handlers) using full BFS reachability analysis. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: During code cleanup passes or dead-code audits to identify symbols safe to delete. NOT TO USE: For checking specific symbol usages (use gograph_usages or gograph_callers instead). RETURNS: List of orphan symbols with their package paths and file locations; empty list means no dead code detected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||