mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Update Godoc for function GetConfigFilePath to meet Godocs approach to documentation
This commit is contained in:
parent
e252e1cc54
commit
0a8c192870
1 changed files with 1 additions and 4 deletions
5
viper.go
5
viper.go
|
@ -1734,10 +1734,7 @@ func (v *Viper) getConfigFile() (string, error) {
|
||||||
return v.getConfigFile()
|
return v.getConfigFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the path where Viper actually found the logfile it uses.
|
// GetConfigFilePath returns the path where Viper actually found the configfile 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() (string, error) {
|
func GetConfigFilePath() (string, error) {
|
||||||
return v.getConfigFile()
|
return v.getConfigFile()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue