Skip to content

Commit

Permalink
docs: improve API performance and testing robustness
Browse files Browse the repository at this point in the history
- Add a comment describing the `Fn` function which retrieves zap fields from `gin.Context`

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Nov 9, 2024
1 parent 5435dd0 commit b95a398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b95a398

Please sign in to comment.