func myMiddleware() gin.HandlerFunc { return func(c *gin.Context) { someInt := int64(123) c.Set("MyInt", someInt) c.Next() } } func myHandler(c *gin.Context) { myInt, _ := c.Get("MyInt") fmt.Println(myInt.(int64)) // Output: 123 } router := gin.Default() router.Use(middleware.ParamsInt64("myInt")) router.Use(myMiddleware()) router.GET("/", myHandler)In the above code example, we have defined a middleware function "myMiddleware" that sets an int64 value of 123 in the request context with the key "MyInt". Then, we have defined a handler function "myHandler" that retrieves the int64 value from the context and prints it to the console. Next, we configure the router to use the ParamsInt64 middleware for the key "myInt" and the "myMiddleware" middleware function. Finally, we map the "/" endpoint to the "myHandler" function. Overall, the Context ParamsInt64 middleware is a useful way to store and pass int64 values across multiple middleware functions in a Gin web application.