pager

package
v1.105.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Pager)

func WithBufferSize

func WithBufferSize(size int64) Option

func WithTitle

func WithTitle(title string) Option

func WithTitleSpinner

func WithTitleSpinner(spinner bool) Option

type Pager

type Pager struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Pager, error)

func (*Pager) Start

func (p *Pager) Start(ctx context.Context) error

func (*Pager) Write

func (p *Pager) Write(b []byte) (int, error)

type WriterStringer

type WriterStringer interface {
	io.Writer
	fmt.Stringer
}

Jump to

Keyboard shortcuts

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