some comments on decor.Statistics fields
Vladimir Bauer
3 years ago
| 46 | 46 | // Statistics consists of progress related statistics, that Decorator |
| 47 | 47 | // may need. |
| 48 | 48 | type Statistics struct { |
| 49 | AvailableWidth int | |
| 50 | RequestedWidth int | |
| 49 | AvailableWidth int // calculated width initially equal to terminal width | |
| 50 | RequestedWidth int // width set by `mpb.WithWidth` | |
| 51 | 51 | ID int |
| 52 | 52 | Total int64 |
| 53 | 53 | Current int64 |