MCPcopy Create free account
hub / github.com/devfeel/dotweb / MustInitConfig

Function MustInitConfig

config/configs.go:188–194  ·  view source on GitHub ↗

init config file If an exception occurs, will be panic it

(configFile string, confType ...interface{})

Source from the content-addressed store, hash-verified

186// init config file
187// If an exception occurs, will be panic it
188func 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
197func InitConfig(configFile string, confType ...interface{}) (config *Config, err error) {

Callers

nothing calls this directly

Calls 1

InitConfigFunction · 0.85

Tested by

no test coverage detected