From b95a398fd4ef395af6b684b9e5b474371990841c Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 9 Nov 2024 11:59:51 +0800 Subject: [PATCH] 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 --- zap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zap.go b/zap.go index 76abe8e..7d1a987 100644 --- a/zap.go +++ b/zap.go @@ -17,6 +17,7 @@ import ( "go.uber.org/zap/zapcore" ) +// Fn is a function to get zap fields from gin.Context type Fn func(c *gin.Context) []zapcore.Field // Skipper is a function to skip logs based on provided Context