mirror of https://github.com/spf13/viper.git
Doc for GetConfigFilePath() now precedes the function
This commit is contained in:
parent
e867180379
commit
b6a7a50b2f
8
viper.go
8
viper.go
|
@ -1734,11 +1734,11 @@ func (v *Viper) getConfigFile() (string, error) {
|
||||||
return v.getConfigFile()
|
return v.getConfigFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returns the path where Viper actually found the logfile it uses.
|
||||||
|
//
|
||||||
|
// Useful when you want to write the configPath to logfiles, stdout, etc.
|
||||||
|
// Comes in handy during debugging or when running in production environments.
|
||||||
func GetConfigFilePath() {
|
func GetConfigFilePath() {
|
||||||
// Returns the path where Viper actually found the logfile it uses.
|
|
||||||
//
|
|
||||||
// Useful when you want to write the configPath to logfiles, stdout, etc.
|
|
||||||
// Comes in handy during debugging or when running in production environments.
|
|
||||||
return v.getConfigFile()
|
return v.getConfigFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue