Documentation
¶
Overview ¶
Package pager provides types and methods for paging output. It takes a value which satisfies the SetWriter interface which provides methods for setting and retrieving a standard and error writer. You pass this value to the pager.Start method and if either of the writers is connected to a terminal then it will start a pager command and insert it between the writer and the terminal. The Start method returns a pager and you must call the Done method on the returned pager.
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
}
type Writers ¶
type Writers struct {
// contains filtered or unexported fields
}
Writers provides a canonical implementation of the SetW interface. It can be used as a mixin with other data structures.
func W ¶ added in v1.0.1
func W() Writers
W creates and returns a Writers object initialising it with a the os.Stdout and os.Stderr values