| 11 | ) |
| 12 | |
| 13 | type ProgressReader struct { |
| 14 | ioReadSeeker io.ReadSeeker |
| 15 | bytesRead int64 |
| 16 | total int64 |
| 17 | quit chan bool |
| 18 | ui terminal.UI |
| 19 | outputInterval time.Duration |
| 20 | mutex sync.RWMutex |
| 21 | } |
| 22 | |
| 23 | func NewProgressReader(readSeeker io.ReadSeeker, ui terminal.UI, outputInterval time.Duration) *ProgressReader { |
| 24 | return &ProgressReader{ |
nothing calls this directly
no outgoing calls
no test coverage detected