intial state
This commit is contained in:
20
exp/cron/cron.go
Normal file
20
exp/cron/cron.go
Normal file
@ -0,0 +1,20 @@
|
||||
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()))
|
||||
}
|
Reference in New Issue
Block a user