About
This is a fork of gddo, the software which previously powered the now-defunct godoc.org, operated by lillian (star-ark.net). The source code is available on sr.ht.
Documentation
GoDoc generates documentation from Go source code. The guidelines for writing Go documentation apply.
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 it in search results.
Add a package
To add a package to GoDoc, search for the package by import path. If GoDoc does not already have the documentation for the package, it will fetch the package source code from the Go module proxy on the fly.
GoDoc checks for module updates periodically. You can force GoDoc to check for updates by clicking the refresh button at the bottom of the package documentation page. If that doesn't work, it's possible that the module proxy doesn't know about the update yet. You can try fetching the module with 'go get' to force the module proxy to check for updates.
Tools for package owners
To add a badge to your project like this:
Click on "tools" for package owners at the bottom of the documentation page.
Keyboard shortcuts
GoDoc has keyboard shortcuts for navigating package documentation pages. Type '?' on a package page for help.