commit | 5aa1437cf3b804f1506dd9eda322e9d1e834e45d | [log] [tgz] |
---|---|---|
author | Andrew Cohen <acohen@movableink.com> | Thu Nov 13 14:43:51 2014 -0500 |
committer | spf13 <steve.francia@gmail.com> | Thu Nov 13 16:23:17 2014 -0500 |
tree | bc5c5186dd5a7e38df9a7d6283d953b22b38f61f | |
parent | 64816e48607842d1a93a0fa69a51943ecfb70309 [diff] [blame] |
Fix missed path->filepath renaming This fixes https://github.com/spf13/viper/issues/24 Caused by https://github.com/spf13/viper/pull/20
diff --git a/viper.go b/viper.go index c722cd5..3a55f23 100644 --- a/viper.go +++ b/viper.go
@@ -621,7 +621,7 @@ } cf := getConfigFile() - ext := path.Ext(cf) + ext := filepath.Ext(cf) if len(ext) > 1 { return ext[1:]