type Schedule struct {
// When to start the schedule. Zero time means immediately Time time.Time// Non zero interval dictates an ongoing schedule Interval time.Duration
}
Schedule represents a time or interval at which a task should run
type Task interface {
// Run runs a command immediately until completion Run(Command) error// Status provides status of last execution Status() string
}