gograph_implementers
Find all structs implementing a given interface via Go duck-typing to trace polymorphism and dependency injection structures.
Instructions
Find all structs in the codebase that implement the specified interface via Go duck-typing. 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 tracing polymorphism, identifying dependency injection structures, or locating mock implementations. Do NOT use if you are looking for struct fields (use gograph_fields instead). COMPLETENESS: Requires 'interface' parameter. Returns a detailed list of implementing concrete structs and their package file locations. Example interface: 'error'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | Yes | The name of the interface (e.g., 'AuthService') | |
| test_only | No | If true, return only structs defined in test or mock files (replaces gograph_mocks) |