progress

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package progress provides functions to inform the user about the status of an ongoing operation via a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(rd io.Reader, term Terminal) io.Reader

Reader returns a wrapped reader which reports progress statios via term.

Types

type Terminal

type Terminal interface {
	Printf(string, ...interface{}) error
	SetStatus([]string) error
}

Terminal allows writing messages which stay on the screen and scroll, and displaying a set of status lines that are updated whenever new information is avaliable.

Jump to

Keyboard shortcuts

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