This commit is contained in:
白茶清欢 2021-11-12 17:44:35 +08:00
parent 38e8945306
commit 959f06d5aa
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ package main
import (
"encoding/json"
"fmt"
"time"
"git.zhangdeman.cn/zhangdeman/gopkg/cmd"
@ -37,6 +38,8 @@ func main() {
panic("任务配置文件读取失败 : " + err.Error())
}
fmt.Println("读取到的任务配置 : " + string(byteData))
if err = json.Unmarshal(byteData, &TaskList); nil != err {
panic("任务配置文件解析失败 : " + err.Error())
}