progmeter

package module
v0.0.0-...-b13e88c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Key    string
	Name   string
	State  string
	Active bool
	Info   string

	Start time.Time
	// contains filtered or unexported fields
}

func (*Item) Print

func (it *Item) Print(state string)

type ProgMeter

type ProgMeter struct {
	Items []Item
	// contains filtered or unexported fields
}

func NewProgMeter

func NewProgMeter(minimal bool) *ProgMeter

func (*ProgMeter) AddEntry

func (p *ProgMeter) AddEntry(key, name, inf string)

func (*ProgMeter) AddEntryWithState

func (p *ProgMeter) AddEntryWithState(state, key, name, inf string)

func (*ProgMeter) AddTodos

func (p *ProgMeter) AddTodos(n int)

func (*ProgMeter) Error

func (p *ProgMeter) Error(key, err string)

func (*ProgMeter) Finish

func (p *ProgMeter) Finish(key string)

func (*ProgMeter) MarkDone

func (p *ProgMeter) MarkDone()

func (*ProgMeter) SetState

func (p *ProgMeter) SetState(key, state, progress string)

func (*ProgMeter) Stop

func (p *ProgMeter) Stop()

func (*ProgMeter) Working

func (p *ProgMeter) Working(key, state, progress string)

Jump to

Keyboard shortcuts

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