-
-
Save antonkalik/ae0a8055df21f48aa933a852094ef37b to your computer and use it in GitHub Desktop.
Fiber for go lang
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