mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
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.
This commit is contained in:
parent
2b24bea958
commit
d56c59c66a
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -34,7 +34,7 @@ var configPaths []string
|
||||||
var configName string = "config"
|
var configName string = "config"
|
||||||
|
|
||||||
// extensions Supported
|
// extensions Supported
|
||||||
var SupportedExts []string = []string{"json", "toml", "yaml"}
|
var SupportedExts []string = []string{"json", "toml", "yaml", "yml"}
|
||||||
var configFile string
|
var configFile string
|
||||||
var configType string
|
var configType string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue