GitXplorerGitXplorer
v

progress-go

public
54 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
f948426036a9d7a795b4a46fc0560b3c817a1563

Merge pull request #1 from xdream86/patch-1

vvardius committed 2 years ago
Verified
1a82390b2595619339d78f562b7d190d217bc174

Update bar.go

xxdream86 committed 2 years ago
Verified
1e0c68ab2c62c596e2d392fe5e789bbbc2b43384

Update bar.go

xxdream86 committed 2 years ago
Verified
d2e19efcd33895a8b64c080d4c30bd3f16b2c3fc

fix progress bar no fill full bar

xxdream86 committed 2 years ago
Unverified
c85a970b9413ed1fe58311b98ac4048826ffcc93

Correctly compute rate

vvardius committed 3 years ago
Unverified
bfdb548fe39d2710ac8e596eaa1dab1be379c4a6

Show current mem usage instead of cumulative value

vvardius committed 3 years ago

README

The README file for this repository.

πŸ’― progress-go

Build Status Go Report Card codecov license

logo

Go simple progress bar writing to output

πŸ“– ABOUT

Contributors:

Want to contribute ? Feel free to send pull requests!

Have problems, bugs, feature ideas? We are using the github issue tracker to manage them.

πŸ“š Documentation

For examples visit godoc#pkg-examples

For GoDoc reference, visit pkg.go.dev

🚏 HOW TO USE

Progress Bar CLI

🏫 Basic example

package main

import (
	"log"

	"github.com/vardius/progress-go"
)

func main() {
	bar := progress.New(0, 10)

	_, _ = bar.Start()
	defer func() {
		if _, err := bar.Stop(); err != nil {
			log.Printf("failed to finish progress: %v", err)
		}
	}()

	for i := 0; i < 10; i++ {
		_, _ = bar.Advance(1)
	}
}

πŸ“œ License

This package is released under the MIT license. See the complete license in the package.