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.