NewUploadReader returns an UploadReader for an "underlying" reader.
(underlying io.Reader)
| 30 | |
| 31 | // NewUploadReader returns an UploadReader for an "underlying" reader. |
| 32 | func NewUploadReader(underlying io.Reader) *UploadReader { |
| 33 | return &UploadReader{ |
| 34 | reader: underlying, |
| 35 | terminationError: nil, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Read returns the error set by Terminate, if any, or calls the underlying reader. |
| 40 | // It is safe to call this from a different goroutine than Terminate. |
no outgoing calls
searching dependent graphs…