1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-03-26 21:59:45 +02:00
Files
FreePad/lib/controllers/controllers_taskmanager.go

23 lines
325 B
Go

package controllers
import (
"time"
)
func TaskManager() {
// Run the migrations function
go handleMigrations()
for range time.Tick(time.Second * 5) {
// fmt.Printf("%s\n", time.Now().Format("02/01/2006 03:04 PM"))
}
}
func handleMigrations() {
time.AfterFunc(time.Second*30, func() {
// Run Migrations
})
}