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.
pull/3166/head
Maria Niranjan 2024-10-12 19:35:23 +05:30 committed by GitHub
parent 48e82e753c
commit 9dd3d94ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

2
.github/README.md vendored
View File

@ -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 👋!")
})