package
0.22.0-dev
Repository: https://github.com/elves/elvish.git
Documentation: pkg.go.dev

# Functions

MixedRanging returns a Ranging from the start position of a to the end position of b.
NewContext creates a new Context.
PackErrors packs multiple instances of [Error] with the same tag into one error: - If called with no errors, it returns nil.
PointRanging returns a zero-width Ranging at the given point.
ShowError shows an error.
UnpackErrors returns the constituent [Error] instances in an error if it is built from [PackErrors].

# Variables

Variables controlling the style used in [*Context.Show].
Variables controlling the style used in [*Context.Show].

# Structs

Context stores information derived from a range in some text.
Error represents an error with context that can be showed.
Ranging represents a range [From, To) within an indexable sequence.

# Interfaces

ErrorTag is used to parameterize [Error] into different concrete types.
RangeError combines error with [Ranger].
Ranger wraps the Range method.
Shower wraps the Show function.