From de09d9ce07d0d8a74442cfeaa91628cf9492cc23 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Thu, 22 Dec 2016 16:12:50 +0100 Subject: [PATCH] Update README with missing import statements (#373) --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f827a980..2efda592 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,12 @@ In a Cobra app, typically the main.go file is very bare. It serves, one purpose, ```go package main -import "{pathToYourApp}/cmd" +import ( + "fmt" + "os" + + "{pathToYourApp}/cmd" +) func main() { if err := cmd.RootCmd.Execute(); err != nil { @@ -313,7 +318,12 @@ In a Cobra app, typically the main.go file is very bare. It serves, one purpose, ```go package main -import "{pathToYourApp}/cmd" +import ( + "fmt" + "os" + + "{pathToYourApp}/cmd" +) func main() { if err := cmd.RootCmd.Execute(); err != nil {