1
0
Fork 0
mirror of https://github.com/Luzifer/repo-template.git synced 2024-11-13 01:42:42 +00:00
repo-template/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go

18 lines
219 B
Go
Raw Normal View History

// +build !appengine,!js,!windows
2018-02-07 09:03:05 +00:00
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
2018-02-07 09:03:05 +00:00
default:
return false
}
}