Skip to content

Commit 1bc909a

Browse files
committed
Add a checkTerminal for nacl to support running on play.golang.org
1 parent f0375eb commit 1bc909a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

terminal_check_nacl.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build nacl
2+
3+
package logrus
4+
5+
import (
6+
"io"
7+
)
8+
9+
func checkIfTerminal(w io.Writer) bool {
10+
return false
11+
}

terminal_check_notappengine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !appengine,!js,!windows
1+
// +build !appengine,!js,!windows,!nacl
22

33
package logrus
44

0 commit comments

Comments
 (0)