Rename main func to initConfig

The function called `main` in the manual creation example should be called
`initConfig`.
This commit is contained in:
Johanan Liebermann 2017-06-24 17:46:43 +03:00 committed by Albert Nigmatzianov
parent f9d34972c1
commit 6471e3de04

View file

@ -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.