Codebase list golang-github-vbauerster-mpb / 058515c
Convenience method Increment Vladimir Bauer 8 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
113113 // ProxyReader wrapper for io operations, like io.Copy
114114 func (b *Bar) ProxyReader(r io.Reader) *Reader {
115115 return &Reader{r, b}
116 }
117
118 // Increment shorthand for b.Incr(1)
119 func (b *Bar) Increment() {
120 b.Incr(1)
116121 }
117122
118123 // Incr increments progress bar