17 Star 36 Fork 10

ShirDon-廖显东 / goProgressor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
simple.go 355 Bytes
一键复制 编辑 原始数据 按行查看 历史
githubvip 提交于 2019-11-29 16:18 . commit
package main
import (
"time"
"gitee.com/shirdonl/goProgressor"
)
func main() {
goprogressor.Start() // start rendering
bar := goprogressor.AddBar(100) // Add a new bar
// optionally, append and prepend completion and elapsed time
bar.AppendCompleted()
bar.PrependElapsed()
for bar.Incr() {
time.Sleep(time.Millisecond * 20)
}
}
Go
1
https://gitee.com/shirdonl/goProgressor.git
git@gitee.com:shirdonl/goProgressor.git
shirdonl
goProgressor
goProgressor
master

搜索帮助