crazy shit.

This commit is contained in:
didier committed 2024-08-09 09:55:52 -04:00
1 parent d57a00bbc8
commit 7bf9a0398f
356 files changed
+196503 -3

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// +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
}
}