From fc6736c260829f2a6e8f8be270d02f7591df4f52 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Wed, 27 Oct 2021 14:14:16 +0200 Subject: [PATCH] Update SetConfigType example Seems it's always required. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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