About
Blog
Demos
Book Diary

Viewing Go Documentation for a Local Module

2025-06-20

Change to the directory containing your local module, and run:

go install golang.org/x/pkgsite/cmd/pkgsite@latest && pkgsite

Then navigate to http://localhost:8080.

That’s it. This is the best way to view Go documentation for a local package as of June 2025.


Github
LinkedIn
© Peter Stace 2015-2024