MCPcopy
hub / github.com/spf13/viper / getConfigFile

Method getConfigFile

viper.go:2051–2060  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2049}
2050
2051func (v *Viper) getConfigFile() (string, error) {
2052 if v.configFile == "" {
2053 cf, err := v.findConfigFile()
2054 if err != nil {
2055 return "", err
2056 }
2057 v.configFile = cf
2058 }
2059 return v.configFile, nil
2060}
2061
2062// Debug prints all configuration registries for debugging
2063// purposes.

Callers 7

WatchConfigMethod · 0.95
ReadInConfigMethod · 0.95
MergeInConfigMethod · 0.95
WriteConfigMethod · 0.95
getConfigTypeMethod · 0.95
TestGetConfigFileFunction · 0.80

Calls 1

findConfigFileMethod · 0.95

Tested by 2

TestGetConfigFileFunction · 0.64