Skip to content
a cron library for go; job 方法可以传参
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 15 commits behind robfig:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
constantdelay.go
constantdelay_test.go
cron.go
cron_test.go
doc.go
parser.go
parser_test.go
spec.go
spec_test.go

README.md

GoDoc Build Status

// 允许调用AddFunc时传额外的参数

c := cron.New()
err := c.AddFunc(item.Spec, func(e *cron.Entry) {
    fmt.Println(e.Param.(string)) // output "hello"
}, "hello")

c.Start()
You can’t perform that action at this time.