gograph_usages
Identify all occurrences of a Go type in function parameters, return types, and struct fields to assess the impact of changing that type.
Instructions
Find every place a named Go type appears in function parameter lists, return type signatures, and struct field type declarations. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: Before changing an interface or type definition — see the full consumption blast radius across all signatures and struct fields. NOT TO USE: For call sites of a function (use gograph_callers); for struct composite-literal initialization sites (use gograph_literals); for all transitive callers (use gograph_impact). RETURNS: File paths and line locations where the type name appears in signatures or struct fields; empty when the type is not referenced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type name to search for (e.g., 'AuthService', 'Repository') |