newHook returns a io.ReadSeeker which implements hookReader that reports the data read from the source to the hook.
(source, hook io.Reader)
| 83 | // newHook returns a io.ReadSeeker which implements hookReader that |
| 84 | // reports the data read from the source to the hook. |
| 85 | func newHook(source, hook io.Reader) io.Reader { |
| 86 | if hook == nil { |
| 87 | return &hookReader{source: source} |
| 88 | } |
| 89 | return &hookReader{ |
| 90 | source: source, |
| 91 | hook: hook, |
| 92 | } |
| 93 | } |
no outgoing calls
no test coverage detected