pkg

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFiller

func WithFiller(filler string) func(*Bar)

WithFiller 设置进度条填充字符

func WithFillerLength

func WithFillerLength(l int64) func(*Bar)

WithFillerLength 设置进度条显示长度

func WithInterval

func WithInterval(t time.Duration) func(*Bar)

WithInterval 设置进度条打印间隔时间

Types

type Bar

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

func New

func New(total int64, opts ...func(*Bar)) *Bar

New 新建进度条实例

func (*Bar) Done

func (bar *Bar) Done(i int64)

Done 更新完成进度

func (*Bar) Finish

func (bar *Bar) Finish()

Finish 完成最后进度条

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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