From d56c59c66a8a2a57ff38c8a6227dbcd7cd5f64a3 Mon Sep 17 00:00:00 2001 From: David Pelaez Date: Fri, 15 Aug 2014 12:08:05 -0500 Subject: [PATCH] Included .yml as supported extension. Hi. Thanks for creating Viper, it's been very useful to me. I come from Ruby and .yaml is really never used there, .yml is the common extension. I verified online and it's valid known extension for Yaml files so I added it. I realized this when trying to use `config.yml` in a project and getting an error on my code. Does adding this makes sense? Pretty silly addition, but it did confuse me for a while to realize the error using my app on a server, so I think it's worth adding. Cheers. --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 38bd17d..b22bcce 100644 --- a/viper.go +++ b/viper.go @@ -34,7 +34,7 @@ var configPaths []string var configName string = "config" // extensions Supported -var SupportedExts []string = []string{"json", "toml", "yaml"} +var SupportedExts []string = []string{"json", "toml", "yaml", "yml"} var configFile string var configType string