Doc for GetConfigFilePath() now precedes the function

This commit is contained in:
Fabian Knorr 2018-02-06 20:15:27 +01:00
parent e867180379
commit b6a7a50b2f
1 changed files with 4 additions and 4 deletions

View File

@ -1734,11 +1734,11 @@ func (v *Viper) getConfigFile() (string, error) {
return v.getConfigFile() return v.getConfigFile()
} }
func GetConfigFilePath() {
// Returns the path where Viper actually found the logfile it uses. // Returns the path where Viper actually found the logfile it uses.
// //
// Useful when you want to write the configPath to logfiles, stdout, etc. // Useful when you want to write the configPath to logfiles, stdout, etc.
// Comes in handy during debugging or when running in production environments. // Comes in handy during debugging or when running in production environments.
func GetConfigFilePath() {
return v.getConfigFile() return v.getConfigFile()
} }