Codebase list golang-github-vbauerster-mpb / 1038ff2
Deprecate Incr(int) method, use IncrBy(int) instead. Vladimir Bauer 8 years ago
1 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
132132 return &Reader{r, b}
133133 }
134134
135 // Increment shorthand for b.Incr(1)
135 // Increment is a shorthand for b.IncrBy(1)
136136 func (b *Bar) Increment() {
137 b.Incr(1)
138 }
139
140 // Incr increments progress bar by amount of n
137 b.IncrBy(1)
138 }
139
140 // Incr Deprecated! Use IncrBy(int) or Increment() instead
141141 func (b *Bar) Incr(n int) {
142 b.IncrBy(n)
143 }
144
145 // IncrBy increments progress bar by amount of n
146 func (b *Bar) IncrBy(n int) {
142147 if n < 1 {
143148 return
144149 }