From 5aa1437cf3b804f1506dd9eda322e9d1e834e45d Mon Sep 17 00:00:00 2001 From: Andrew Cohen Date: Thu, 13 Nov 2014 14:43:51 -0500 Subject: [PATCH] Fix missed path->filepath renaming This fixes https://github.com/spf13/viper/issues/24 Caused by https://github.com/spf13/viper/pull/20 --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index c722cd5..3a55f23 100644 --- a/viper.go +++ b/viper.go @@ -621,7 +621,7 @@ func getConfigType() string { } cf := getConfigFile() - ext := path.Ext(cf) + ext := filepath.Ext(cf) if len(ext) > 1 { return ext[1:]