Back to godoc.org

Package middleware

v0.0.0-...-71cfb09
Latest Go to latest

The latest major version is .

Published: Jun 3, 2020 | License: Apache-2.0 | Module: github.com/Muskchen/toolkits

Index

Constants

const TimeFormat = "2006-01-02 15:04:05"

func GinZapLogger

func GinZapLogger() gin.HandlerFunc

使用zao.logger的中间件

func GinZapSugaredLogger

func GinZapSugaredLogger() gin.HandlerFunc

使用zap.SugaredLogger的中间件

func RecoverWithZapLogger

func RecoverWithZapLogger(stack bool) gin.HandlerFunc

Panic恢复的中间件

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier