mpb

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMaxLine

func GetMaxLine() int

func Reset

func Reset()

func SetMaxLine

func SetMaxLine(line int)

Types

type Bar

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

Bar 进度条

func NewBar

func NewBar(line int, prefix string, total int) *Bar

func (*Bar) Add

func (b *Bar) Add(n ...int)

Add 进度条前进, 同时也会触发其它信号

func (*Bar) SetPrefix

func (b *Bar) SetPrefix(prefix string)

SetPrefix 设置进度条前端文字

func (*Bar) SetSpeedSection

func (b *Bar) SetSpeedSection(fast, slow int)

func (*Bar) SetUnit

func (b *Bar) SetUnit(src string, dst string, change int)

func (*Bar) Wait

func (b *Bar) Wait()

Wait 等待进度条刷新run协程结束

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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