Documentation
¶
Overview ¶
Package pager provides a writer that pipes output through a terminal pager (respecting $PAGER, defaulting to less) when stdout is a TTY.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
Pager wraps a writer, optionally piping output through a terminal pager.
func New ¶
New returns a Pager that pipes through a terminal pager when w is a TTY and enabled is true. The caller must call Close when done writing.
Click to show internal directories.
Click to hide internal directories.