fix vendor directory

This commit is contained in:
Jeff
2019-09-04 14:04:37 +08:00
parent 289b8ebd2b
commit 70293cc6fd
94 changed files with 0 additions and 14018 deletions

View File

@@ -0,0 +1,20 @@
// +build !appengine,!js,windows
package logrus
import (
"io"
"os"
"syscall"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
var mode uint32
err := syscall.GetConsoleMode(syscall.Handle(v.Fd()), &mode)
return err == nil
default:
return false
}
}