From 612f06f846d3218dbfba3252f83a333f7f1f275d Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Sat, 24 Aug 2024 23:05:11 +0300 Subject: [PATCH] Use single import line in the trivial examples When we want to show a minimal example with single import it looks cleaner and more minimal with a single line. --- site/content/user_guide.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/site/content/user_guide.md b/site/content/user_guide.md index 7d34c3895..dd26de4f8 100644 --- a/site/content/user_guide.md +++ b/site/content/user_guide.md @@ -18,9 +18,7 @@ In a Cobra app, typically the main.go file is very bare. It serves one purpose: ```go package main -import ( - "{pathToYourApp}/cmd" -) +import "{pathToYourApp}/cmd" func main() { cmd.Execute() @@ -148,9 +146,7 @@ In a Cobra app, typically the main.go file is very bare. It serves one purpose: ```go package main -import ( - "{pathToYourApp}/cmd" -) +import "{pathToYourApp}/cmd" func main() { cmd.Execute()