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 ¶
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))
Click to show internal directories.
Click to hide internal directories.