Address confusing contradiction in README

I just tested it and ``viper.SetConfigName("config.json")`` will not work. Yet the README both states it will and will not work 2 lines apart. This small PR addresses that.
This commit is contained in:
Wouter Wijsman 2021-10-27 11:32:42 +02:00 committed by GitHub
parent 0594522560
commit 7aafba0af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ where a configuration file is expected.
```go
viper.SetConfigName("config") // name of config file (without extension)
viper.SetConfigType("yaml") // REQUIRED if the config file does not have the extension in the name
viper.SetConfigType("yaml") // REQUIRED if the config file has an extension
viper.AddConfigPath("/etc/appname/") // path to look for the config file in
viper.AddConfigPath("$HOME/.appname") // call multiple times to add many search paths
viper.AddConfigPath(".") // optionally look for config in the working directory