Files
fiber-test/init.go
Tommy Parnell 76930490d6 fibre test
2021-12-28 11:36:46 -05:00

21 lines
290 B
Go

package main
import (
"github.com/TerribleDev/fiber-test/people"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
person := people.Person{
Name: "John",
Age: 30,
}
return c.JSON(person)
})
app.Listen(":3000")
}