(percent int)
| 89 | } |
| 90 | |
| 91 | func (p *progressBarImpl) Progress(percent int) { |
| 92 | if percent < 0 { |
| 93 | percent = 0 |
| 94 | } else if percent > 100 { |
| 95 | percent = 100 |
| 96 | } |
| 97 | p.percent = percent |
| 98 | p.indeterminate = false |
| 99 | p.refresh() |
| 100 | } |
| 101 | |
| 102 | func (p *progressBarImpl) Prefix(prefix string) { |
| 103 | p.prefix = prefix |