mirror of
https://github.com/spf13/viper
synced 2025-05-11 22:57:21 +00:00
Merge 0a8c192870
into 0d7e8034ee
This commit is contained in:
commit
1059fbb340
1 changed files with 5 additions and 0 deletions
5
viper.go
5
viper.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue