mirror of https://github.com/gin-gonic/gin.git
Merge pull request #590 from seregayoga/develop
Default writers must be io.Writers
This commit is contained in:
commit
3576efa535
5
mode.go
5
mode.go
|
@ -5,6 +5,7 @@
|
||||||
package gin
|
package gin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin/binding"
|
"github.com/gin-gonic/gin/binding"
|
||||||
|
@ -30,8 +31,8 @@ const (
|
||||||
// To support coloring in Windows use:
|
// To support coloring in Windows use:
|
||||||
// import "github.com/mattn/go-colorable"
|
// import "github.com/mattn/go-colorable"
|
||||||
// gin.DefaultWriter = colorable.NewColorableStdout()
|
// gin.DefaultWriter = colorable.NewColorableStdout()
|
||||||
var DefaultWriter = os.Stdout
|
var DefaultWriter io.Writer = os.Stdout
|
||||||
var DefaultErrorWriter = os.Stderr
|
var DefaultErrorWriter io.Writer = os.Stderr
|
||||||
|
|
||||||
var ginMode = debugCode
|
var ginMode = debugCode
|
||||||
var modeName = DebugMode
|
var modeName = DebugMode
|
||||||
|
|
Loading…
Reference in New Issue