doc

package
v0.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 5 Imported by: 0

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

func DocString(rawExpr string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL