Skip to content
This repository was archived by the owner on Jan 17, 2022. It is now read-only.
/ tqdm Public archive

Add a progress indicator to your loops quickly. (A port of tqdm.)

License

Notifications You must be signed in to change notification settings

elderica/tqdm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attach a progress indicator quickly on your program.

This is golang reimplementation base on interesting library tqdm.

Example

package main

import (
	"github.com/sbwhitecap/tqdm"
	. "github.com/sbwhitecap/tqdm/iterators"
	"time"
)

func main() {
	tqdm.With(Interval(0, 10), "hello", func(v interface{}) (brk bool) {
		time.Sleep(1000 * time.Millisecond)
		return
	})
}

The default output is sent to os.Stderr. Here is screenshot:

|#######---| 7/10  70% [elapsed: 00:07 left: 00:03,  1.00 iters/sec]

Usage

See tqdm's godoc and tqdm/iterators's godoc.

Install

go get -u github.com/sbwhitecap/tqdm

Contributing

Pull requests are welcome.

  • Revising documentation
  • Adding new feature
  • Sending patch for bug fix
  • Suggest for improvement

License

About

Add a progress indicator to your loops quickly. (A port of tqdm.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages