I need to run my Co program continuously with five minute interval.
I tried using gocron but the program is not giving any output.
func hi() {
fmt.Println("hi")
}
func main() {
gocron.Every(5).Minute().Do(hi)
}
I expect this to run and print "hi" at every 5 min interval.