21 lines
229 B
Go
21 lines
229 B
Go
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()))
|
|
}
|