View definition

var DefaultWriter

Defined in


DefaultWriter is the default io.Writer used the Gin for debug output and middleware output like Logger() or Recovery(). Note that both Logger and Recovery provides custom ways to configure their output io.Writer. To support coloring in Windows use:

import ""
gin.DefaultWriter = colorable.NewColorableStdout()

DefaultWriter is referenced in 5 repositories