GitHub

boltz symbols

Extract functions, types, and methods from Go files as JSON.

Usage

boltz symbols [path]

Example

$ boltz symbols main.go
{
  "files": [
    {
      "path": "main.go",
      "symbols": [
        {"name": "version", "kind": "const", "line": 12},
        {"name": "main", "kind": "function", "line": 14}
      ]
    }
  ]
}

Symbol Kinds

  • function - Standalone functions
  • method - Functions with receivers
  • struct - Struct types
  • interface - Interface types
  • const - Constants
  • var - Variables

Use Cases

  • Feed code structure to AI assistants
  • Generate documentation
  • Understand unfamiliar codebases
  • Build code analysis tools