Documentation ¶ Index ¶ func JSON(next http.Handler) http.Handler func JSONTo(next http.Handler, output io.Writer) http.Handler func New(next http.Handler, format Format, output io.Writer) http.Handler func Text(next http.Handler, output io.Writer) http.Handler type Format Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func JSON ¶ func JSON(next http.Handler) http.Handler func JSONTo ¶ func JSONTo(next http.Handler, output io.Writer) http.Handler func New ¶ func New(next http.Handler, format Format, output io.Writer) http.Handler func Text ¶ func Text(next http.Handler, output io.Writer) http.Handler Types ¶ type Format ¶ type Format string const ( FormatJSON Format = "json" FormatText Format = "text" FormatNone Format = "none" ) Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.