Skip to content
Node: node-crongithub.com/sahilkhaire/gox/cron

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 int64

Compare: Node.js · Standard Go · gox

js
// Typical node-cron pattern in Node.js
go
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()

Back to cron package overview

MIT Licensed · Built for Node.js developers moving to Go