| 12345678910111213141516171819 |
- package qconf
- import (
- "git.shuncheng.lu/bigthing/gocommon/pkg/conf"
- "git.shuncheng.lu/bigthing/gocommon/pkg/internal/util"
- )
- func GetQconfIdc() string {
- return conf.GetString("qconf", "qconfIdc", "")
- }
- func InitQconf() error {
- if conf.GetEnv() == conf.EnvDebug {
- util.Warnf("[Qconf] not init, current env=debug")
- return nil
- }
- util.Debugf("[Qconf] load config success , qconfIdc: %s", GetQconfIdc())
- return initQconf()
- }
|