diff --git a/bar.go b/bar.go index 4fd0c41..762e8ef 100644 --- a/bar.go +++ b/bar.go @@ -114,6 +114,11 @@ // ProxyReader wrapper for io operations, like io.Copy func (b *Bar) ProxyReader(r io.Reader) *Reader { return &Reader{r, b} +} + +// Increment shorthand for b.Incr(1) +func (b *Bar) Increment() { + b.Incr(1) } // Incr increments progress bar