Forráskód Böngészése

merge with appeengine

Marcelo Pires 7 éve
szülő
commit
5aaf3c68bb
3 módosított fájl, 2 hozzáadás és 16 törlés
  1. 2 2
      isatty_appengine.go
  2. 0 13
      isatty_js.go
  3. 0 1
      isatty_others.go

+ 2 - 2
isatty_appengine.go

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

+ 0 - 13
isatty_js.go

@@ -1,13 +0,0 @@
-//+build go1.11,js
-
-package isatty
-
-// IsTerminal returns always false if GOOS=js
-func IsTerminal(fd uintptr) bool {
-	return false
-}
-
-// IsCygwinTerminal returns always false if GOOS=js
-func IsCygwinTerminal(fd uintptr) bool {
-	return false
-}

+ 0 - 1
isatty_others.go

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