periodic

时间:2021-03-21 11:23:05
【文件属性】:
文件名称:periodic
文件大小:8KB
文件格式:ZIP
更新时间:2021-03-21 11:23:05
Go 周期性的 定期是Golang任务调度pkg。这可以帮助您轻松地使用预定的时间间隔定期运行功能。 我认为这个pkg不稳定。因此,我不建议在prod env中使用它。 快速开始 package main import ( "fmt" "os" "os/signal" "syscall" "time" "github.com/blackironj/periodic" ) func helloWorld () { fmt . Println ( "Hello World" ) } func helloWithParams ( first , second string ) { fmt . Printf ( "Hello, %s %s \n " , first , second ) } func main () { scheduler := periodic . NewSchedu
【文件预览】:
periodic-main
----task_test.go(2KB)
----error.go(313B)
----.github()
--------workflows()
----scheduler_test.go(2KB)
----LICENSE(1KB)
----.gitignore(3KB)
----go.sum(1024B)
----README.md(1KB)
----scheduler.go(3KB)
----task.go(1KB)
----go.mod(91B)

网友评论