From 1bc909a4f82b24e40552305da4a6907cabc48e66 Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Tue, 14 May 2019 09:13:07 +0200 Subject: [PATCH] Add a checkTerminal for nacl to support running on play.golang.org --- terminal_check_nacl.go | 11 +++++++++++ terminal_check_notappengine.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 terminal_check_nacl.go diff --git a/terminal_check_nacl.go b/terminal_check_nacl.go new file mode 100644 index 0000000..59d1e2c --- /dev/null +++ b/terminal_check_nacl.go @@ -0,0 +1,11 @@ +// +build nacl + +package logrus + +import ( + "io" +) + +func checkIfTerminal(w io.Writer) bool { + return false +} diff --git a/terminal_check_notappengine.go b/terminal_check_notappengine.go index 7be2d87..a0b571a 100644 --- a/terminal_check_notappengine.go +++ b/terminal_check_notappengine.go @@ -1,4 +1,4 @@ -// +build !appengine,!js,!windows +// +build !appengine,!js,!windows,!nacl package logrus