MCPcopy
hub / github.com/caddyserver/caddy / IsWriterStandardStream

Function IsWriterStandardStream

logging.go:282–289  ·  view source on GitHub ↗

IsWriterStandardStream returns true if the input is a writer-opener to a standard stream (stdout, stderr).

(wo WriterOpener)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected