Update Go dependencies

This commit is contained in:
Matthias Loibl 2022-06-22 16:25:58 +02:00
parent 09e1f13509
commit d3d7715750
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
391 changed files with 73854 additions and 103071 deletions

View file

@ -1,19 +0,0 @@
// +build linux
// +build !appengine
// +build !android
package isatty
import "golang.org/x/sys/unix"
// IsTerminal return true if the file descriptor is terminal.
func IsTerminal(fd uintptr) bool {
_, err := unix.IoctlGetTermios(int(fd), unix.TCGETS)
return err == nil
}
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
// terminal. This is also always false on this environment.
func IsCygwinTerminal(fd uintptr) bool {
return false
}