Created
May 19, 2025 07:24
-
-
Save antonkalik/441c6e226816107fa49e640479689e48 to your computer and use it in GitHub Desktop.
fiber go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/gofiber/fiber/v2" | |
) | |
func main() { | |
app := fiber.New() | |
app.Get("/ping", func(c *fiber.Ctx) error { | |
return c.SendString("pong") | |
}) | |
app.Listen(":3000") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment