From 6e4fbe0847843b145b7e2004a23a69f6be09b512 Mon Sep 17 00:00:00 2001 From: Johanan Liebermann Date: Sat, 24 Jun 2017 17:46:43 +0300 Subject: [PATCH] Rename main func to initConfig The function called `main` in the manual creation example should be called `initConfig`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f1eef779..002014a3 100644 --- a/README.md +++ b/README.md @@ -328,7 +328,7 @@ func Execute() { rootCmd.Execute() } -func main() { +func initConfig() { // Don't forget to read config either from cfgFile or from home directory! if cfgFile != "" { // Use config file from the flag.