123456789101112131415161718192021 |
- package conf
- import (
- "github.com/Unknwon/goconfig"
- )
- var Config *goconfig.ConfigFile
- var NatsServer_Url string
- func init() {
- var err error
- Config, err = goconfig.LoadConfigFile("conf/conf.ini")
- if err != nil {
- panic(any("conf/conf.ini 没找到!"))
- }
- // Nats
- NatsServer_Url, _ = Config.GetValue("", "NatsServer_Url")
- }
|