gograph_literals
Find hardcoded primitive literals (strings, ints, floats, booleans) in Go code by specifying a struct name. Identifies magic values, config strings, or credentials.
Instructions
Find all primitive literals (strings, integers, floats, booleans) matching a filter pattern. 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 to identify hardcoded magic values, config strings, or credentials. Do NOT use for raw database queries (use gograph_sql instead). COMPLETENESS: Optional 'type' filter (string/int). Returns a list of matched literals and their code positions. Example pattern: 'mcp'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| struct | Yes | The name of the struct (e.g., 'User') |