This is useful if you want to pass some specific data to the next middleware. c.Locals("user", "admin") return c.Next()app.Get("/admin", func(c *fiber.Ctx) error { if c.Locals("user") == "admin" { return c.SendStatus(403)