This commit is contained in:
Fabi 2021-09-19 22:52:47 +05:30 committed by GitHub
commit 1059fbb340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2105,6 +2105,11 @@ func (v *Viper) getConfigFile() (string, error) {
return v.configFile, nil
}
// GetConfigFilePath returns the path where Viper actually found the configfile it uses.
func GetConfigFilePath() (string, error) {
return v.getConfigFile()
}
func (v *Viper) searchInPath(in string) (filename string) {
jww.DEBUG.Println("Searching for config in ", in)
for _, ext := range SupportedExts {