https://github.com/vardius/progress-go
Go simple progress bar writing to output
https://github.com/vardius/progress-go
Last synced: 11 months ago
JSON representation
Go simple progress bar writing to output
- Host: GitHub
- URL: https://github.com/vardius/progress-go
- Owner: vardius
- License: mit
- Created: 2020-10-27T09:49:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T22:16:08.000Z (over 3 years ago)
- Last Synced: 2025-04-04T01:41:25.190Z (about 1 year ago)
- Language: Go
- Size: 47.9 KB
- Stars: 54
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
π― progress-go
================
[](https://travis-ci.org/vardius/progress-go)
[](https://goreportcard.com/report/github.com/vardius/progress-go)
[](https://codecov.io/gh/vardius/progress-go)
[](https://pkg.go.dev/github.com/vardius/progress-go)
[](https://github.com/vardius/progress-go/blob/master/LICENSE.md)

Go simple progress bar writing to output
π ABOUT
==================================================
Contributors:
* [RafaΕ Lorenz](http://rafallorenz.com)
Want to contribute ? Feel free to send pull requests!
Have problems, bugs, feature ideas?
We are using the github [issue tracker](https://github.com/vardius/progress-go/issues) to manage them.
## π Documentation
For __examples__ **visit [godoc#pkg-examples](http://godoc.org/github.com/vardius/progress-go#pkg-examples)**
For **GoDoc** reference, **visit [pkg.go.dev](https://pkg.go.dev/github.com/vardius/progress-go)**
π HOW TO USE
==================================================

## π« Basic example
```go
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](LICENSE.md)
-------
This package is released under the MIT license. See the complete license in the package.