2021-12-24 18:50:43 +08:00
|
|
|
package main
|
|
|
|
|
2021-12-27 21:02:11 +08:00
|
|
|
import (
|
|
|
|
"git.icechen.cn/pkg/go-template/app/service/example_service/pkg/user"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
2021-12-24 18:50:43 +08:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
user.GetUser()
|
2021-12-27 21:02:11 +08:00
|
|
|
app := fiber.New()
|
|
|
|
app.Get("/test", func(c *fiber.Ctx) error {
|
|
|
|
return c.SendString("success")
|
|
|
|
})
|
|
|
|
err := app.Listen(":8080")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2021-12-24 18:50:43 +08:00
|
|
|
}
|