func New(tasks []*Task) (*Scheduler, error) {
	c := cron.New()
	for _, t := range tasks {
		_, err := c.AddFunc(t.CronTab, handler(t.Func))
		if err != nil {
			return nil, err
		}
	}
	return &Scheduler{c}, nil
}
New returns new *Scheduler
package scheduler
import (
	"log"
	"runtime/debug"
	"github.com/robfig/cron/v3"
)
type Task struct {
	CronTab string
	Func    func() error
}
type Scheduler struct {
	cron *cron.Cron
}