From 7ccbc8f5849a05ba0346bd9773d33e008b88f6a6 Mon Sep 17 00:00:00 2001 From: Sergey Fedchenko Date: Fri, 15 Apr 2016 14:12:07 +0600 Subject: [PATCH] Default writers must be io.Writers --- mode.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mode.go b/mode.go index fcb8f8fa..f44b071d 100644 --- a/mode.go +++ b/mode.go @@ -5,6 +5,7 @@ package gin import ( + "io" "os" "github.com/gin-gonic/gin/binding" @@ -30,8 +31,8 @@ const ( // To support coloring in Windows use: // import "github.com/mattn/go-colorable" // gin.DefaultWriter = colorable.NewColorableStdout() -var DefaultWriter = os.Stdout -var DefaultErrorWriter = os.Stderr +var DefaultWriter io.Writer = os.Stdout +var DefaultErrorWriter io.Writer = os.Stderr var ginMode = debugCode var modeName = DebugMode