The source code for GoDoc is available on GitHub.
GoDoc displays documentation for GOOS=linux unless otherwise noted at the bottom of the documentation page.
It's important to write a good summary of the package in the first sentence of the package comment. GoDoc indexes the first sentence and displays the first sentence in package lists.
To add a package to GoDoc, search for the package by import path. If GoDoc does not already have the documentation for the package, then GoDoc will fetch the source from the version control system on the fly and add the documentation.
GoDoc scrapes the GitHub recent updates page to find recently updated packages on GitHub. For other services, GoDoc checks for updates once per day. You can force GoDoc to refresh the documentation immediately by clicking the refresh link at the bottom of the package documentation page.
GoDoc crawls package imports to automatically find new packages.
Search for packages with the term 'sql':
$ curl -H 'Accept: text/plain' http://godoc.org/?q=sql
Get the documentation for the standard math package:
$ curl -H 'Accept: text/plain' http://godoc.org/math
GoDoc has keyboard shortcuts for navigating package documentation pages. Type '?' on a package page for help.
The GoDoc bookmarklet navigates from pages on Bitbucket, GitHub Launchpad and Google Project Hosting to the package documentation. To install the bookmarklet, click and drag the following link to your bookmark bar: GoDoc