Added directory structure for routing

This commit is contained in:
2023-07-22 14:19:12 +02:00
parent 2fba1066f8
commit 416eb415a9
7 changed files with 69 additions and 19 deletions

View File

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

View File

@@ -0,0 +1,13 @@
package main
import (
"log"
"{{cookiecutter.module_path}}/internal/app"
)
func main() {
if err := app.Run(); err != nil {
log.Fatal(err)
}
}