初始化输出配置文件
This commit is contained in:
parent
80352e8601
commit
98f9424e77
4
main.go
4
main.go
|
|
@ -103,6 +103,10 @@ func initConfig(configPath string) {
|
||||||
err := proto.ReadConfig(configPath)
|
err := proto.ReadConfig(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic("failed to read config file:" + err.Error())
|
panic("failed to read config file:" + err.Error())
|
||||||
|
} else {
|
||||||
|
//输出配置文件
|
||||||
|
config_bytes, _ := json.Marshal(proto.Config)
|
||||||
|
log.Println(string(config_bytes))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue