A VS Code extension that adds a virtual directory tree to the Explorer sidebar,
showing Go package dependency relationships starting from the main package.
Instead of navigating by filesystem layout, you navigate by import dependencies,
making it easy to understand how packages relate to each other.
Comparison
File Explorer (filesystem)
Go Packages (dependency tree)
The File Explorer shows the project by filesystem layout. The Go Packages view
shows the same project by import dependency, starting from the main package
as the root and expanding through its imports recursively.
Features
Dependency tree view — automatically detects the main package(s) and
builds a virtual directory tree from their import graph
Library mode — for projects without a main package, builds a reverse
dependency tree showing "what imports this package"
Colored icons — blue folders for module-internal packages, orange folders
for third-party dependencies
Open .go files — click any file in the tree to open it in the editor
Right-click actions — Copy Import Path, Open in Terminal, New File,
New Subdirectory, Delete Folder, Reveal in Finder
Auto-refresh — watches go.mod, go.sum, and .go files; automatically
rebuilds the tree when dependencies change