JobID
Overview
JobID identifies a scheduled job.
Part of the cron package — Node.js analog: node-cron.
JobID is a type exported by gox. Methods on this type are documented separately.
Signature
go
type JobID int64Compare: Node.js · Standard Go · gox
js
// Typical node-cron pattern in Node.jsgo
c := cron.New()
c.AddFunc(spec, fn)
c.Start()go
import "github.com/sahilkhaire/gox/cron"
var id cron.JobID = "nightly-backup"Example
go
import "github.com/sahilkhaire/gox/cron"
var id cron.JobID = "nightly-backup"Tips
Browse methods on this type in the sidebar for handler-style APIs and options structs.
Standard library alternative
Use the standard library directly:
go
c := cron.New()
c.AddFunc(spec, fn)
c.Start()