Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

mitsuse/progress-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Progress

Build Status GoDoc

A library to show customizable progress bar on CUI implemented in Golang.

example.gif

Features

Porgress-go supports the following features:

  • Customizable widgets
  • Status update with multi-threads

Example

The following snippet is an example of simple progress bar.

// Create a new progress bar. 
// "TASK_SIZE" is the total number of tasks to be processed.
// "BAR_WIDTH" is the width of progress bar.
p := progress.NewSimple(TASK_SIZE, BAR_WIDTH)
p.Show()

for task := 0; task < p.Task(); task++ {
	doSomething()

	// Make a progress
	p.Add(1)
}

// Force to refresh the progress bar and quit.
p.Close()

Progress-go also works on multiple threads. Please try running multi.go.

Installation

Just execute the following command:

go get github.com/mitsuse/progress-go

TODO

  • Write the docs.
  • Support for various platforms.

License

The license is not decided yet.

About

A library to show customizable progress bar on CUI implemented in Golang.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages