generated from pkg/go-template
12 lines
201 B
Go
12 lines
201 B
Go
|
package main
|
||
|
|
||
|
import "github.com/gofiber/fiber/v2"
|
||
|
|
||
|
func main() {
|
||
|
router := fiber.New()
|
||
|
router.Get("/user", func(ctx *fiber.Ctx) error {
|
||
|
return ctx.SendString("user")
|
||
|
})
|
||
|
router.Listen(":8080")
|
||
|
}
|