Example showcasing Go documentation with godoc.
Read more in "Efficient Go"; Example 2-9.
Prerequisite: go installed.
- Pull the repo on local machine.
- Go to the directory where this README exists.
- Run
make. This will triggergodocinstallation on your local machine. Then it will startgodocin serving mode that serves documentation on port 6060. - Once you see "using module mode; ...", go to
localhost:6060in your browser. You see all available modules on your machine, including standard library. Forpkg/godocpackage see http://localhost:6060/pkg/github.com/efficientgo/examples/pkg/godoc/.