NewPipeBomb returns an io.WriteCloser that can be used to stream data to a the Pipebomb.
()
| 22 | // NewPipeBomb returns an io.WriteCloser that can be used to stream data to a |
| 23 | // the Pipebomb. |
| 24 | func NewPipeBomb() (*Pipebomb, io.WriteCloser) { |
| 25 | writerOutput, writerInput := io.Pipe() |
| 26 | return &Pipebomb{ReadCloser: writerOutput}, writerInput |
| 27 | } |
no outgoing calls
no test coverage detected