15 lines
194 B
Go
15 lines
194 B
Go
|
package background
|
||
|
|
||
|
import (
|
||
|
"github.com/robfig/cron"
|
||
|
)
|
||
|
|
||
|
var c *cron.Cron
|
||
|
|
||
|
// SetBackground -
|
||
|
func SetBackground() {
|
||
|
c = cron.New()
|
||
|
c.AddFunc("0 * * * * *", getFacebookPageData)
|
||
|
c.Start()
|
||
|
}
|