12345678910111213141516171819202122232425 |
- package main
- import (
- "log"
- "github.com/dmitriygnatenko/internal/fiber"
- sp "github.com/dmitriygnatenko/internal/service_provider"
- _ "github.com/go-sql-driver/mysql"
- )
- func main() {
- serviceProvider, err := sp.Init()
- if err != nil {
- log.Fatal(err)
- }
- fiberApp, err := fiber.Init(serviceProvider)
- if err != nil {
- log.Fatal(err)
- }
- if err = fiberApp.Listen(":" + serviceProvider.GetEnvService().GetAppPort()); err != nil {
- log.Fatal(err)
- }
- }
|