Documentation
¶
Overview ¶
Package docreflect returns the Go documentation for packages, types and functions.
The Go documentation of packages is not available during runtime by default, so in order to use docreflect, the documentation for the selected packages and symbols needs to be generated during build time. To generate the documentation, see the docreflect/generate package or the docreflect generate command.
Index ¶
- func Docs(gopath string) string
- func Field(t reflect.Type, fieldPath ...string) string
- func Function(v reflect.Value) string
- func FunctionParams(v reflect.Value) []string
- func Method(t reflect.Type, name string) string
- func MethodParams(t reflect.Type, name string) []string
- func Register(gopath, docs string)
- func Type(t reflect.Type) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Docs ¶
Docs returns the documentation for a package or a symbol in a package identified by its full go path.
func FunctionParams ¶
FunctionParams returns the list of the parameter names of a package level function.
func MethodParams ¶
MethodParams returns the list of the parameter names of a type method.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
docreflect
command
|
|
|
Package generate provides a generator to generate go code from go docs that registers doc entries for use with the docreflect package.
|
Package generate provides a generator to generate go code from go docs that registers doc entries for use with the docreflect package. |
|
internal
|
|
|
tests/src/command
command
|
|
|
tests/src/testpackage
Package testpackage is a test package
|
Package testpackage is a test package |