1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-18 20:40:27 +00:00

vendor: update sources

```shell
dep ensure -update
```

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-01-21 11:03:35 -05:00
parent 94a6c46bde
commit 9be05594fe
Signed by: vbatts
GPG key ID: 10937E57733F1362
316 changed files with 93933 additions and 14988 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
}
}