gograph_constructors
Locate constructor and factory functions that instantiate a specific Go struct. Helps audit object creation patterns and builder functions in your codebase.
Instructions
Find factory and constructor functions that instantiate and return the specified Go struct. 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 object initialization patterns, looking for existing builder functions, or verifying correct struct instantiation. Do NOT use if you need struct fields (use gograph_fields instead). COMPLETENESS: Requires 'struct' parameter. Returns a detailed list of constructor function symbols, their file locations, and signatures, showing exactly how the target struct is built. Example struct: 'Graph'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| struct | Yes | The exact name of the target Go struct to find constructors for (e.g., 'User', 'Config') |