minor: toggle some fields
Vladimir Bauer
3 years ago
| 45 | 45 | pool []*Bar |
| 46 | 46 | |
| 47 | 47 | // following are provided/overrided by user |
| 48 | rr time.Duration | |
| 48 | 49 | idCount int |
| 49 | 50 | reqWidth int |
| 50 | 51 | popPriority int |
| 51 | 52 | popCompleted bool |
| 52 | 53 | outputDiscarded bool |
| 53 | 54 | disableAutoRefresh bool |
| 54 | rr time.Duration | |
| 55 | uwg *sync.WaitGroup | |
| 56 | 55 | externalRefresh chan interface{} |
| 57 | 56 | renderDelay <-chan struct{} |
| 58 | 57 | shutdownNotifier chan struct{} |
| 59 | 58 | queueBars map[*Bar]*Bar |
| 60 | 59 | output io.Writer |
| 61 | 60 | debugOut io.Writer |
| 61 | uwg *sync.WaitGroup | |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // New creates new Progress container instance. It's not possible to |
| 79 | 79 | pool: make([]*Bar, 0, 64), |
| 80 | 80 | externalRefresh: make(chan interface{}), |
| 81 | 81 | queueBars: make(map[*Bar]*Bar), |
| 82 | popPriority: math.MinInt32, | |
| 82 | 83 | output: os.Stdout, |
| 83 | popPriority: math.MinInt32, | |
| 84 | 84 | debugOut: io.Discard, |
| 85 | 85 | } |
| 86 | 86 | |