From 6471e3de04847308a90b2c93c0056d74c6ae9476 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 b30330ba..3a9ec287 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.