1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-29 05:36:55 +02:00
Files
go_basics/part_8/8.4/golang/todo-service/main.go
Stanislav Chernyshev d4e7211d1d Глава 8
Допричесать игру
2025-06-22 21:04:23 +03:00

21 lines
307 B
Go

package main
import (
"golang/todo-service/db"
"golang/todo-service/service"
"log"
"net/http"
)
const PORT = "8080"
func main() {
rep := db.NewSQLiteRepository()
defer rep.Close()
router := service.NewRouter(rep)
log.Printf("Server started")
log.Fatal(http.ListenAndServe(":"+PORT, router))
}