Skip to content

Commit b95a398

Browse files
committed
docs: improve API performance and testing robustness
- Add a comment describing the `Fn` function which retrieves zap fields from `gin.Context` Signed-off-by: appleboy <[email protected]>
1 parent 5435dd0 commit b95a398

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zap.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"go.uber.org/zap/zapcore"
1818
)
1919

20+
// Fn is a function to get zap fields from gin.Context
2021
type Fn func(c *gin.Context) []zapcore.Field
2122

2223
// Skipper is a function to skip logs based on provided Context

0 commit comments

Comments
 (0)