mirror of
https://github.com/spf13/cobra
synced 2025-05-07 22:07:23 +00:00
Remove duplicate reference to main.go
This commit is contained in:
parent
81e0311edd
commit
750b5745d1
1 changed files with 0 additions and 14 deletions
14
README.md
14
README.md
|
@ -131,20 +131,6 @@ application will follow the following organizational structure:
|
||||||
main.go
|
main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
In a Cobra app, typically the main.go file is very bare. It serves one purpose: initializing Cobra.
|
|
||||||
|
|
||||||
```go
|
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"{pathToYourApp}/cmd"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
cmd.Execute()
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Using the Cobra Generator
|
## Using the Cobra Generator
|
||||||
|
|
||||||
Cobra provides its own program that will create your application and add any
|
Cobra provides its own program that will create your application and add any
|
||||||
|
|
Loading…
Add table
Reference in a new issue