diff --git a/README.md b/README.md index c0a2db5..23db812 100644 --- a/README.md +++ b/README.md @@ -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 has an extension +viper.SetConfigType("yaml") // REQUIRED 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