Marcelo Pires 7 лет назад
Родитель
Сommit
5aaf3c68bb
3 измененных файлов с 2 добавлено и 16 удалено
  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
 package isatty
 
 
 // IsTerminal returns true if the file descriptor is terminal which
 // 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 {
 func IsTerminal(fd uintptr) bool {
 	return false
 	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 !windows
 // +build !appengine
 // +build !appengine
-// +build !js
 
 
 package isatty
 package isatty