From 9dd3d94ff24735c4e018e0b94db5bba22d8f45f3 Mon Sep 17 00:00:00 2001 From: Maria Niranjan <130844959+s19835@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:35:23 +0530 Subject: [PATCH] Update README.md (#3165) Missing a pointer reference when passing the context object in the route handler function. In Fiber, the context (c) is a pointer, so it should be *fiber.Ctx instead of fiber.Ctx. --- .github/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index 68fbd9c9..dbfee363 100644 --- a/.github/README.md +++ b/.github/README.md @@ -73,7 +73,7 @@ func main() { app := fiber.New() // Define a route for the GET method on the root path '/' - app.Get("/", func(c fiber.Ctx) error { + app.Get("/", func(c *fiber.Ctx) error { // Send a string response to the client return c.SendString("Hello, World 👋!") })