Convenience method Increment
Vladimir Bauer
8 years ago
| 113 | 113 |
// ProxyReader wrapper for io operations, like io.Copy
|
| 114 | 114 |
func (b *Bar) ProxyReader(r io.Reader) *Reader {
|
| 115 | 115 |
return &Reader{r, b}
|
|
116 |
}
|
|
117 |
|
|
118 |
// Increment shorthand for b.Incr(1)
|
|
119 |
func (b *Bar) Increment() {
|
|
120 |
b.Incr(1)
|
| 116 | 121 |
}
|
| 117 | 122 |
|
| 118 | 123 |
// Incr increments progress bar
|