From 3f71ac11c663d02096f547ac1caf90f2b1770da6 Mon Sep 17 00:00:00 2001 From: liujianping Date: Thu, 12 Jul 2018 11:21:39 +0800 Subject: [PATCH] use export GetConfigFile --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 9727c09..4a780a5 100644 --- a/viper.go +++ b/viper.go @@ -1707,7 +1707,7 @@ func (v *Viper) SetConfigType(in string) { } // GetConfigFile gets the the configuration file path -func GetConfigFile() (string, error) { return v.getConfigFile() } +func GetConfigFile() (string, error) { return v.GetConfigFile() } func (v *Viper) GetConfigFile() (string, error) { return v.getConfigFile() }