Go simple progress bar writing to output
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.
For examples visit godoc#pkg-examples
For GoDoc reference, visit pkg.go.dev
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.