12 lines
149 B
Go
12 lines
149 B
Go
//go:build !windows
|
|
|
|
package iostreams
|
|
|
|
import (
|
|
"errors"
|
|
"syscall"
|
|
)
|
|
|
|
func isEpipeError(err error) bool {
|
|
return errors.Is(err, syscall.EPIPE)
|
|
}
|