IsWriterStandardStream returns true if the input is a writer-opener to a standard stream (stdout, stderr).
(wo WriterOpener)
| 280 | // IsWriterStandardStream returns true if the input is a |
| 281 | // writer-opener to a standard stream (stdout, stderr). |
| 282 | func IsWriterStandardStream(wo WriterOpener) bool { |
| 283 | switch wo.(type) { |
| 284 | case StdoutWriter, StderrWriter, |
| 285 | *StdoutWriter, *StderrWriter: |
| 286 | return true |
| 287 | } |
| 288 | return false |
| 289 | } |
| 290 | |
| 291 | type writerDestructor struct { |
| 292 | io.WriteCloser |
no outgoing calls
no test coverage detected