This commit is contained in:
Jay
2018-09-09 23:36:56 +08:00
parent 0eb7d69a16
commit 00147fc4d0
12 changed files with 1043 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package background
import "github.com/robfig/cron"
var c *cron.Cron
// SetBackground -
func SetBackground() {
c = cron.New()
c.AddFunc("0 */2 * * * *", readFacebookPage)
c.Start()
}
func readFacebookPage() {}