From 16a945857303e8ea14318664816932b07a0ed5ce Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sun, 23 Jul 2017 06:54:24 +0200 Subject: [PATCH] Fix indentation in README.md See #345 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e723d4..e088cbf 100644 --- a/README.md +++ b/README.md @@ -116,10 +116,10 @@ Optionally you can provide a function for Viper to run each time a change occurs **Make sure you add all of the configPaths prior to calling `WatchConfig()`** ```go - viper.WatchConfig() - viper.OnConfigChange(func(e fsnotify.Event) { - fmt.Println("Config file changed:", e.Name) - }) +viper.WatchConfig() +viper.OnConfigChange(func(e fsnotify.Event) { + fmt.Println("Config file changed:", e.Name) +}) ``` ### Reading Config from io.Reader