progress_bar

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

Bar @Description: 进度条结构体

func (*Bar) NewBar

func (bar *Bar) NewBar(start, total int64)

NewBar 实例化一个进度条 @receiver bar *Bar @param start int64 @param total int64

func (*Bar) NewBarWithGraph

func (bar *Bar) NewBarWithGraph(start, total int64, graph string)

NewBarWithGraph 实例化一个进度条(可自定义进度条图形) @receiver bar *Bar @param start int64 @param total int64 @param graph string

func (*Bar) Run

func (bar *Bar) Run(cur int64)

Run 执行进度条展示 @receiver bar *Bar @param cur int64

Jump to

Keyboard shortcuts

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