progress

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package progress provides a printer that writes dots at a configured interval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer interface {
	// Start outputs a dot (.) every configured interval until Stop is called.
	// Note that Start does not block.
	Start()
	// Stop stops the progress printer, which outputs a newline before exiting.
	// Stop blocks until the progress printer has exited.
	Stop()
}

Printer outputs a dot (.) every configured interval until Stop is called.

func NewPrinter

func NewPrinter(w io.Writer, interval time.Duration) Printer

NewPrinter creates a new Printer.

Directories

Path Synopsis
Package fakeprogress provides an implementation of the progress.Printer interface to be used in tests.
Package fakeprogress provides an implementation of the progress.Printer interface to be used in tests.

Jump to

Keyboard shortcuts

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