Add gofiber

This commit is contained in:
Dan Jones 2023-03-20 20:40:58 -05:00
commit 4139d835be
3 changed files with 100 additions and 1 deletions

16
main.go
View file

@ -1,5 +1,19 @@
package main
func main() {
import (
"log"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
return c.JSON(&fiber.Map{
"Hello": "World",
})
})
log.Fatal(app.Listen(":3000"))
}