type.go 245 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 package jobs import "github.com/robfig/cron/v3" type Job interface { Run() addJob(*cron.Cron) (int, error) } type JobsExec interface { Exec(arg interface{}) error } func CallExec(e JobsExec, arg interface{}) error { return e.Exec(arg) }