The ReaderStream implements the stream interface by wrapping the generic io.ReadCloser interface. It does not provide any stream length information due to performance reasons. The reader does not have a name, so it needs to be provided when initializing a new ReaderStream instance.
| 12 | // The reader does not have a name, so it needs to be provided when |
| 13 | // initializing a new ReaderStream instance. |
| 14 | type ReaderStream struct { |
| 15 | name string |
| 16 | reader io.ReadCloser |
| 17 | } |
| 18 | |
| 19 | func (s ReaderStream) Name() string { |
| 20 | return s.name |
nothing calls this directly
no outgoing calls
no test coverage detected