1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-23 21:34:47 +02:00

add new project step and small fix

This commit is contained in:
Stanislav Chernyshev
2025-06-16 11:31:09 +03:00
parent e606a539b9
commit 0029a1d728
68 changed files with 3215 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
"golang/todo/db"
"golang/todo/menu"
"time"
)
func main() {
// Создаем репозиторий
rep := db.NewSQLiteRepository()
// Создаем отложенное закрытие соединения
defer rep.Close()
// Бесконечный цикл
for {
menu.CreateMenu(rep)
time.Sleep(2 * time.Second)
}
}