From d82ae3267f00e51730a17237aa1aed5908081ec8 Mon Sep 17 00:00:00 2001 From: Darren McCleary Date: Wed, 8 Feb 2017 14:03:21 -0500 Subject: [PATCH 1/2] Fixed import --- terminal_appengine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminal_appengine.go b/terminal_appengine.go index 632ecbe..e011a86 100644 --- a/terminal_appengine.go +++ b/terminal_appengine.go @@ -2,6 +2,8 @@ package logrus +import "io" + // IsTerminal returns true if stderr's file descriptor is a terminal. func IsTerminal(f io.Writer) bool { return true From 6b682c59338d48511d84bf97a11e72754ae2bc6b Mon Sep 17 00:00:00 2001 From: Darren McCleary Date: Mon, 13 Feb 2017 10:56:35 -0500 Subject: [PATCH 2/2] More import fixes --- terminal_solaris.go | 1 + terminal_windows.go | 4 ++-- text_formatter_test.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/terminal_solaris.go b/terminal_solaris.go index f3d6f96..62096db 100644 --- a/terminal_solaris.go +++ b/terminal_solaris.go @@ -3,6 +3,7 @@ package logrus import ( + "io" "os" "golang.org/x/sys/unix" diff --git a/terminal_windows.go b/terminal_windows.go index 97ad4e0..05d2f91 100644 --- a/terminal_windows.go +++ b/terminal_windows.go @@ -8,8 +8,8 @@ package logrus import ( - "io" - "os" + "io" + "os" "syscall" "unsafe" ) diff --git a/text_formatter_test.go b/text_formatter_test.go index 107703f..879ebd2 100644 --- a/text_formatter_test.go +++ b/text_formatter_test.go @@ -3,9 +3,9 @@ package logrus import ( "bytes" "errors" + "strings" "testing" "time" - "strings" ) func TestQuoting(t *testing.T) {