init config file If an exception occurs, will be panic it
(configFile string, confType ...interface{})
| 186 | // init config file |
| 187 | // If an exception occurs, will be panic it |
| 188 | func MustInitConfig(configFile string, confType ...interface{}) *Config { |
| 189 | conf, err := InitConfig(configFile, confType...) |
| 190 | if err != nil { |
| 191 | panic(err) |
| 192 | } |
| 193 | return conf |
| 194 | } |
| 195 | |
| 196 | // InitConfig initialize the config with configFile |
| 197 | func InitConfig(configFile string, confType ...interface{}) (config *Config, err error) { |
nothing calls this directly
no test coverage detected