Documentation ¶
Overview ¶
Package doc provides an API to access documentation for functions and tokens
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("Invalid documentation query")
View Source
var ErrNotFound = errors.New("No documentation found")
Functions ¶
func DocString ¶
DocString returns a string containing the documentation for a given expression.
The expression is merely scanned and not parsed, looking for keywords tokens or IDENT tokens forming a function. In that last case, a function lookup is performed, yielding the documentation of that particular function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.