const pwidth
Vladimir Bauer
9 years ago
| 49 | 49 | const ( |
| 50 | 50 | // default RefreshRate |
| 51 | 51 | rr = 100 |
| 52 | // default width | |
| 53 | pwidth = 70 | |
| 52 | 54 | // number of format runes for bar |
| 53 | 55 | numFmtRunes = 5 |
| 54 | 56 | ) |
| 80 | 82 | ctx = context.Background() |
| 81 | 83 | } |
| 82 | 84 | p := &Progress{ |
| 83 | width: 70, | |
| 85 | width: pwidth, | |
| 84 | 86 | operationCh: make(chan *operation), |
| 85 | 87 | rrChangeReqCh: make(chan time.Duration), |
| 86 | 88 | outChangeReqCh: make(chan io.Writer), |