1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-12-25 06:56:30 +00:00
go-mtree/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
Vincent Batts 8f06855856
vendor: update the vendored sources
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:19:26 -04:00

17 lines
232 B
Go

// +build !appengine,!js,!windows,!nacl,!plan9
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}