Инициализация проекта + первые наработки
This commit is contained in:
16
cmd/main.go
Normal file
16
cmd/main.go
Normal 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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user