NewProgress creates new progress instance
(structuredLogging bool)
| 46 | |
| 47 | // NewProgress creates new progress instance |
| 48 | func NewProgress(structuredLogging bool) *Progress { |
| 49 | p := &Progress{ |
| 50 | stopped: make(chan bool), |
| 51 | queue: make(chan printTask, 100), |
| 52 | } |
| 53 | |
| 54 | p.worker = progressWorkerFactroy(structuredLogging, p) |
| 55 | return p |
| 56 | } |
| 57 | |
| 58 | // Start makes progress start its work |
| 59 | func (p *Progress) Start() { |