Documentation
¶
Overview ¶
Package generate provides a generator to generate go code from go docs that registers doc entries for use with the docreflect package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRegistry ¶
GenerateRegistry generates a Go code file to the output, including a package init function that will register the documentation of the declarations specified by their gopath.
The gopath argument accepts any number of package, package level symbol, or struct field paths. It is recommended to use package paths unless special circumstances.
Some important gotchas to keep in mind, GenerateRegistry does not resolve type references like type aliases, or type definitions based on named types, and it doesn't follow import paths.