This commit is contained in:
白茶清欢 2021-11-12 17:44:35 +08:00
parent 38e8945306
commit 959f06d5aa

View File

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