12345678910111213141516171819202122232425 |
- package main
- import (
- "log"
- "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/fiber"
- sp "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/service_provider"
- _ "github.com/lib/pq"
- )
- 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)
- }
- }
|