Bläddra i källkod

Support for AppEngine classic

Simon Green 10 år sedan
förälder
incheckning
ca19903305
5 ändrade filer med 13 tillägg och 0 borttagningar
  1. 9 0
      isatty_appengine.go
  2. 1 0
      isatty_bsd.go
  3. 1 0
      isatty_linux.go
  4. 1 0
      isatty_solaris.go
  5. 1 0
      isatty_windows.go

+ 9 - 0
isatty_appengine.go

@@ -0,0 +1,9 @@
+// +build appengine
+
+package isatty
+
+// IsTerminal returns true if the file descriptor is terminal which
+// is always false on on appengine classic which is a sandboxed PaaS.
+func IsTerminal(fd uintptr) bool {
+	return false
+}

+ 1 - 0
isatty_bsd.go

@@ -1,4 +1,5 @@
 // +build darwin freebsd openbsd netbsd
+// +build !appengine
 
 package isatty
 

+ 1 - 0
isatty_linux.go

@@ -1,4 +1,5 @@
 // +build linux
+// +build !appengine
 
 package isatty
 

+ 1 - 0
isatty_solaris.go

@@ -1,4 +1,5 @@
 // +build solaris
+// +build !appengine
 
 package isatty
 

+ 1 - 0
isatty_windows.go

@@ -1,4 +1,5 @@
 // +build windows
+// +build !appengine
 
 package isatty