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.
This commit is contained in:
Nir Soffer 2024-08-24 23:05:11 +03:00
parent 08fa116823
commit 612f06f846

View file

@ -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()