progress

package
v0.0.0-...-bf65384 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package progress provides an utility to print a simple progress bar in the command line

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Len      int
	OnChange func(s string)
}

Bar contains the information about the progress bar and the hook to call once it receives the new state

func (Bar) Set

func (b Bar) Set(v float64)

Set expects `v` to be from 0 to 1 and updates the progress bar according to the value

Jump to

Keyboard shortcuts

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