github.com/fluhus/godoc-tricks (go): Package godoctricks is a tutorial on the features of GoDoc. It is meant to help eveyone make the most out of this feature of Go.  Notice that this doc is written in godoc itself as package documentation. The defined types are just for making the table of contents at the head of the page; they have no meanings as actual types.  If you have any suggestion or comment, please feel free to open an issue.  By Amit Lavon.  The new version introduces a few additions to what the godoc tool can recognize. You can see them below at Links, Headings and Lists. The official documentation is at: https://go.dev/doc/comment  This function is named Example(), which is a package level test function.  This function is named Example_other(), which is a package level test function and has the label "other".  A whole file example is a file that ends in `_test.go` and contains exactly one example function, no test or benchmark functions, and at least one other package-level declaration.
Keywords: documentation|go|godoc|golang