process_bar

package
v0.0.0-...-8a3c41b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Index

Constants

View Source
const (
	DEFAULT_PROCESS_100 = 100
	PERCENT_WIDTH       = 4
	SPEED_WIDTH         = 7
	BLANK_WIDTH         = 6 // " [  ] "
)

Variables

View Source
var PROCESS_BAR_GRAPH = []string{" ", "-", "\\", "/"}

Functions

func Start

func Start(f func() (int, string))

Types

type ProcessBar

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

func NewProcessBar

func NewProcessBar(timer time.Duration) *ProcessBar

func (*ProcessBar) Process

func (this *ProcessBar) Process(processCnt int, message string)

func (*ProcessBar) Start

func (this *ProcessBar) Start(f func() (int, string))

Jump to

Keyboard shortcuts

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