jasonlvhit / gocron

A Golang Job Scheduling Package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The cron does not run if the function has a argument.

mahdirazaqi opened this issue · comments

example:

func test(names ...string) {
	fmt.Println(names)
}

func main() {
	gocron.Every(1).Day().At("12:00").Do(test)
}

The cron does not work, why??? :/
Help me, plz.