-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use goimports as formatting standard
given some disagreement with gofmt that seems to have shown up in 1.19
- Loading branch information
1 parent
27b4569
commit ade5edb
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
// Package cli provides a minimal framework for creating and organizing command line | ||
// Go applications. cli is designed to be easy to understand and write, the most simple | ||
// cli application can be written as follows: | ||
// func main() { | ||
// (&cli.App{}).Run(os.Args) | ||
// } | ||
// | ||
// func main() { | ||
// (&cli.App{}).Run(os.Args) | ||
// } | ||
// | ||
// Of course this application does not do much, so let's make this an actual application: | ||
// func main() { | ||
// app := &cli.App{ | ||
// Name: "greet", | ||
// Usage: "say a greeting", | ||
// Action: func(c *cli.Context) error { | ||
// fmt.Println("Greetings") | ||
// return nil | ||
// }, | ||
// } | ||
// | ||
// app.Run(os.Args) | ||
// } | ||
// func main() { | ||
// app := &cli.App{ | ||
// Name: "greet", | ||
// Usage: "say a greeting", | ||
// Action: func(c *cli.Context) error { | ||
// fmt.Println("Greetings") | ||
// return nil | ||
// }, | ||
// } | ||
// | ||
// app.Run(os.Args) | ||
// } | ||
package cli | ||
|
||
//go:generate go run internal/genflags/cmd/genflags/main.go |