/projects/goscope.md


GoScope

· github.com/crgimenes/GoScope

GoScope (goscope) is a CLI that scans a Go project starting from the current directory and lists every declared function, variable, constant, type, and function call, with file and line number. No configuration, no flags. You run it, it spits out the list.

rgs is the companion script. It takes the goscope output, pipes it into fzf, and opens the file in your editor ($EDITOR) at the exact line of the chosen item. If you have bat installed, the fzf preview is colorized.

I built this because symbol navigation in editors usually depends on a running LSP, an up-to-date cache, and editor-specific integration. On large projects – with code generation, vendored dependencies, modules with similar names – that fails more often than it should. I wanted something dumb that ran directly, with no server and no cache, and that played well with fzf, which I already use for everything.

Build with go build -o goscope. Drop goscope and rgs into your $PATH and you’re done.

Works on any Unix-like system (macOS, Linux).

Project articles

NameLast modifiedSizeDescription
goscope-explorando-e-navegando-em-projetos-go.md2026-08-28 14:053.7KGoScope, command-line tools to explore Go projects and efficiently locate functions, variables, and types. Learn how to use them to navigate code interactively and boost your productivity.

crg.eti.br · © 2026 Cesar Gimenes · CC BY 4.0 · github · pt