tss/exp/cron/cron.go

21 lines
229 B
Go
Raw Normal View History

2022-04-26 09:55:59 -04:00
package main
import (
"fmt"
"log"
"time"
"github.com/robfig/cron/v3"
)
func main() {
fmt.Println("vim-go")
s, err := cron.ParseStandard("@daily")
if err != nil {
log.Fatal(err)
}
fmt.Println(s.Next(time.Now()))
}