Remove all deprecated methods
Vladimir Bauer
8 years ago
| 131 | 131 |
// Increment is a shorthand for b.IncrBy(1)
|
| 132 | 132 |
func (b *Bar) Increment() {
|
| 133 | 133 |
b.IncrBy(1)
|
| 134 | |
}
|
| 135 | |
|
| 136 | |
// Incr Deprecated! Use IncrBy(int) or Increment() instead
|
| 137 | |
func (b *Bar) Incr(n int) {
|
| 138 | |
b.IncrBy(n)
|
| 139 | 134 |
}
|
| 140 | 135 |
|
| 141 | 136 |
// IncrBy increments progress bar by amount of n
|
| 46 | 46 |
// DecoratorFunc is a function that can be prepended and appended to the progress bar
|
| 47 | 47 |
type DecoratorFunc func(s *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
|
| 48 | 48 |
|
| 49 | |
// Name deprecated, use StaticName instead
|
| 50 | |
func Name(name string, minWidth int, conf byte) DecoratorFunc {
|
| 51 | |
return StaticName(name, minWidth, conf)
|
| 52 | |
}
|
| 53 | |
|
| 54 | 49 |
// StaticName to be used, when there is no plan to change the name during whole
|
| 55 | 50 |
// life of a progress rendering process
|
| 56 | 51 |
func StaticName(name string, minWidth int, conf byte) DecoratorFunc {
|