💻 Tech
Pkgsite can be used in your own local repo to view your own documentation before you publish it. For starters, you can start with creating doc.go, which is a file that contains package documentation.
go install golang.org/x/pkgsite/cmd/pkgsite@latest # install pkgsite
cd /path/to/your/package
pkgsite -http=:8080 # run pkgsite
To access the documentation, visit http://localhost:8080/yourpackage