Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ NewLogMiddleware
Function
NewLogMiddleware
middleware/log.go:25–29 ·
view source on GitHub ↗
(l *zap.Logger)
Source
from the content-addressed store, hash-verified
23
}
24
25
func
NewLogMiddleware(l *zap.Logger) *LogMiddleware {
26
return
&LogMiddleware{
27
l: l,
28
}
29
}
30
31
// Log 日志中间件
32
func
(lm *LogMiddleware) Log() gin.HandlerFunc {
Callers
1
InitMiddlewares
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected