Registry / web-framework / gin-contrib-requestid

gin-contrib-requestid

JSON →
library1.0.6gogounverified

Gin middleware that automatically adds a unique request ID to each HTTP request.

go get github.com/gin-contrib/requestid
INSTALL
IMPORT
SIG · GIN-CONTRIB-REQUES
G
gin-contrib-requestid
web-frameworkgov1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

requestid
✓ github.com/gin-contrib/requestid

Sets up a Gin router with the request ID middleware and retrieves the ID in a handler.

package main import ( "github.com/gin-gonic/gin" "github.com/gin-contrib/requestid" ) func main() { r := gin.Default() r.Use(requestid.New()) r.GET("/", func(c *gin.Context) { c.String(200, "Request ID: %s", requestid.Get(c)) }) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gin-contrib-requestid — go get gin-contrib-requestid · libregistry