Инициализация проекта + первые наработки

This commit is contained in:
Ганеев Артём
2025-01-04 10:42:04 +03:00
commit def3552a67
8 changed files with 248 additions and 0 deletions

16
cmd/main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"authorization/internal"
"authorization/internal/handler"
"log"
)
func main() {
handlers := new(handler.Handler)
srv := new(internal.Server)
if err := srv.Run("8080", handlers.InitRoutes()); err != nil {
log.Fatalf("Ошибка запуска сервера: %s", err.Error())
}
}