go 实现定时任务 Installation To download the specific tagged release, run: go get github.com/robfig/cron/v3@v3.0.0 Import it in your program as: import github.com/robfig/cron/v3 It requires Go 1.11 or later due to usage of Go Modules. 一种是标准的cron 时间 c := cron.New() 接受5个参数 spec := “*/1 * * * *” 一种是精确到秒的