4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-06 10:44:04 +00:00

Move Sirupsen => sirupsen

This commit is contained in:
Wim
2018-02-20 23:41:09 +01:00
parent e92b6de09f
commit 6ea368c383
52 changed files with 1308 additions and 345 deletions

View File

@ -0,0 +1,19 @@
// +build !appengine
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
default:
return false
}
}