Skip to content

jony-lee/go-progress-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-progress-bar

a progress-bar with golang

install

go get -u github.com/jony-lee/go-progress-bar

how to use

package main

import (
	"time"

	progress "github.com/jony-lee/go-progress-bar"
)

func main() {
	bar := progress.New(100)
	for i := 0; i < 100; i++ {
		time.Sleep(time.Second / 10)
		bar.Done(1)
	}
	bar.Finish()
}

About

a progress-bar with golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published