vendor: add github.com/sirupsen/logrus

This commit is contained in:
justinalin 2019-07-26 08:53:58 +08:00 committed by Nick Craig-Wood
parent ccc416e62b
commit a3449bda30
33 changed files with 2853 additions and 0 deletions

View file

@ -0,0 +1,13 @@
// +build linux aix
package logrus
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}