Commit ca5f275b by 朱继来

添加配置

parent dbb8547f
Showing with 7 additions and 2 deletions
......@@ -9,6 +9,7 @@ import (
type Config struct{
Liexin_databases *LiexinMysqlConfig
Rabbitmq_ichunt *RabbitmqIchunt
Crm_domain *SendMail
}
......@@ -24,6 +25,10 @@ type RabbitmqIchunt struct {
Dns string `toml:"dns"`
}
type SendMail struct{
SendMailUrl string `toml:"send_mail"`
}
var Configs *Config =new (Config)
func Init(){
......@@ -31,6 +36,6 @@ func Init(){
if err!=nil{
fmt.Println(err)
}
//fmt.Printf("%+v",Configs.Liexin_databases)
//fmt.Printf("%+v",Configs.Rabbitmq_ichunt)
fmt.Printf("%+v",Configs.Crm_domain)
fmt.Printf("%+v",Configs.Rabbitmq_ichunt)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment