Clarify example in README. Fixes #149
This commit is contained in:
parent
61f43e7695
commit
993877b447
@ -68,8 +68,9 @@ Running this already gives you a ton of functionality, plus support for things l
|
||||
|
||||
Being a programmer can be a lonely job. Thankfully by the power of automation that is not the case! Let's create a greeter app to fend off our demons of loneliness!
|
||||
|
||||
Start by creating a directory named `greet`, and within it, add a file, `greet.go` with the following code in it:
|
||||
|
||||
``` go
|
||||
/* greet.go */
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -84,7 +85,7 @@ func main() {
|
||||
app.Action = func(c *cli.Context) {
|
||||
println("Hello friend!")
|
||||
}
|
||||
|
||||
|
||||
app.Run(os.Args)
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user