From b6a7a50b2f4d34b552c701d4a71d4d95f85da7d1 Mon Sep 17 00:00:00 2001 From: Fabian Knorr Date: Tue, 6 Feb 2018 20:15:27 +0100 Subject: [PATCH] Doc for GetConfigFilePath() now precedes the function --- viper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/viper.go b/viper.go index 78cd1e3..8ea7c86 100644 --- a/viper.go +++ b/viper.go @@ -1734,11 +1734,11 @@ func (v *Viper) getConfigFile() (string, error) { 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() { - // 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() }