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:
16
part_6/6.2/golang/todo_gorm/main.go
Normal file
16
part_6/6.2/golang/todo_gorm/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user