mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
17 lines
203 B
Go
17 lines
203 B
Go
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)
|
|
}
|
|
}
|