progressbar

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package progressbar is a sample implementation of ProgressFunction interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressBar

type ProgressBar struct {
	*progressbar.ProgressBar
}

ProgressBar represents a progress bar that implements ProgressFunction interface.

func New

func New() *ProgressBar

New create a progress bar.

func (*ProgressBar) Increment

func (p *ProgressBar) Increment()

Increment with increase the current count on the progress bar.

func (*ProgressBar) SetMaximum

func (p *ProgressBar) SetMaximum(max int)

SetMaximum sets the maximum of the progress bar.

Jump to

Keyboard shortcuts

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