| 354 | } |
| 355 | |
| 356 | type callbackWriter struct { |
| 357 | io.Writer |
| 358 | written int64 |
| 359 | totalSize int64 |
| 360 | lastTime time.Time |
| 361 | interval time.Duration |
| 362 | callback func(written int64) |
| 363 | } |
| 364 | |
| 365 | func (w *callbackWriter) Write(p []byte) (n int, err error) { |
| 366 | n, err = w.Writer.Write(p) |
nothing calls this directly
no outgoing calls
no test coverage detected