go_templates/cmd/main.go
2024-11-02 14:09:44 +03:00

24 lines
359 B
Go

package main
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/template/html/v2"
"git.pro100code.ru/pro100ton/go_templates/routes"
)
type TrainingEquipment struct {
Name []string
}
func main() {
engine := html.New("./views", ".html")
app := fiber.New(fiber.Config{
Views: engine,
})
routes.RegisterRoutes(app)
app.Listen(":3000")
}