Attempting to make the composite literals pretty
This commit is contained in:
parent
19158640aa
commit
6efb9862ea
35
cli.go
35
cli.go
@ -6,23 +6,24 @@ func main() {
|
|||||||
app := App{
|
app := App{
|
||||||
Name: "math",
|
Name: "math",
|
||||||
Description: "a simple command line math utility",
|
Description: "a simple command line math utility",
|
||||||
Commands: []Command{
|
Commands: []Command{{
|
||||||
{
|
Name: "add",
|
||||||
Name: "add",
|
Description: "Add 2 and 2",
|
||||||
Description: "Add 2 and 2",
|
Action: DoAdd,
|
||||||
Action: DoAdd},
|
}, {
|
||||||
{
|
Name: "subtract",
|
||||||
Name: "subtract",
|
Description: "Subtract 2 and 2",
|
||||||
Description: "Subtract 2 and 2",
|
Action: DoSubtract,
|
||||||
Action: DoSubtract},
|
}, {
|
||||||
{
|
Name: "multiply",
|
||||||
Name: "multiply",
|
Description: "Multiply 2 and 2",
|
||||||
Description: "Multiply 2 and 2",
|
Action: DoMultiply,
|
||||||
Action: DoMultiply},
|
}, {
|
||||||
{
|
Name: "divide",
|
||||||
Name: "divide",
|
Description: "Divide 2 and 2",
|
||||||
Description: "Divide 2 and 2",
|
Action: DoDivide,
|
||||||
Action: DoDivide}}}
|
}},
|
||||||
|
}
|
||||||
|
|
||||||
app.Run(os.Args[1])
|
app.Run(os.Args[1])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user