Skip to content

Commit

Permalink
Use single import line in the trivial examples
Browse files Browse the repository at this point in the history
When we want to show a minimal example with single import it looks
cleaner and more minimal with a single line.
  • Loading branch information
nirs committed Aug 24, 2024
1 parent 08fa116 commit 612f06f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions site/content/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 612f06f

Please sign in to comment.