1 Star 1 Fork 1

xiaoyutab/xgotool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
switch-pause.go 368 Bytes
一键复制 编辑 原始数据 按行查看 历史
package xcron
// 切换任务key的暂停/启用状态
//
// key Crontab任务的下标关键词key
// pause 暂停状态 true-暂停此任务 false-继续运行此任务
func SwitchPause(key string, pause bool) {
for i := 0; i < len(_default.Tables); i++ {
if _default.Tables[i].Key == key {
_default.Tables[i].IsPause = pause
Restart()
return
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiaoyutab/xgotool.git
git@gitee.com:xiaoyutab/xgotool.git
xiaoyutab
xgotool
xgotool
v0.2.92

搜索帮助