My func start .Then run again after 2 min . How to func run again at 3 am ? I user time.Tick
func doEvery(d time.Duration, f func(time.Time)) {
for x := range time.Tick(d) {
f(x)
}
}
func RunUpdateTimeTable(respond chan<- string) {
respond <- "Start get timetables info service."
updateTimeTables(time.Now())
doEvery(2*time.Minute, updateTimeTables)
}