Fix app instantiation in greeter example
This commit is contained in:
parent
c3ce3a299d
commit
feb04561b2
@ -69,7 +69,7 @@ import "os"
|
|||||||
import "github.com/codegangsta/cli"
|
import "github.com/codegangsta/cli"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app = cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "greet"
|
app.Name = "greet"
|
||||||
app.Usage = "fight the loneliness!"
|
app.Usage = "fight the loneliness!"
|
||||||
app.Action = func(c *cli.Context) {
|
app.Action = func(c *cli.Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user