Skip to content

clydegale/progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progress Build Status

progress is a package to easily generate a progress bar for your CLI application. Being written in Go, it makes sense that it is made to be safely usable by multiple goroutines.

docs

Check out the docs at godoc.org

example

package main

import (
	"fmt"
	"os"
	"time"

	"github.com/jzelinskie/progress"
)

func main() {
	pb := progress.New(os.Stdin, 10)
	pb.Draw()
	pb.DrawEvery(1 * time.Second)
	for i := 0; i < 10; i++ {
		pb.Increment()
		time.Sleep(2 * time.Second)
	}
	fmt.Printf("\n")
}

About

thread-safe, ASCII progress bar library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages