Skip to content

Commit

Permalink
Revert godoc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Aug 23, 2022
1 parent 0ef2352 commit 2e8c0e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions godoc-current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ 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)
(&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)
}

VARIABLES

Expand Down

0 comments on commit 2e8c0e9

Please sign in to comment.