Documentation
¶
Index ¶
Constants ¶
const DefaultPackageName = "help"
DefaultPackageName is the package name used by LoadPackage.
Variables ¶
This section is empty.
Functions ¶
func LoadPackage ¶
LoadPackage adds the help package to env
func RenderPackageList ¶ added in v1.16.12
RenderPackageList writes a summary of all loaded packages to w. Each package is listed with its name, export count, and first line of its doc string (if any). Packages are sorted alphabetically.
func RenderPkgExported ¶
RenderPkgExported writes to w formatted documentation for exported symbols in the query package within env. The exact formatting of the rendered documentation is subject to change across elps versions.
Types ¶
type MissingDoc ¶ added in v1.17.0
type MissingDoc struct {
// Kind is the type of the symbol: "builtin", "special-op", "macro",
// "package", or a function type string (e.g. "function").
Kind string
// Name is the qualified name of the symbol (e.g. "math:sin").
Name string
}
MissingDoc describes a symbol with no documentation.
func CheckMissing ¶ added in v1.17.0
func CheckMissing(env *lisp.LEnv) []MissingDoc
CheckMissing reports symbols missing documentation in the given environment. It checks core builtins/ops/macros (from DefaultBuiltins etc.), package-level docs, and exported symbol docs for all packages in env.Runtime.Registry.