Created
May 19, 2025 07:24
-
-
Save antonkalik/bc5585b3dcd30708c3948e49df63e1a7 to your computer and use it in GitHub Desktop.
Fiber golang
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