|
6 | 6 | "flag" |
7 | 7 | "fmt" |
8 | 8 | "io" |
| 9 | + "net/mail" |
9 | 10 | "os" |
10 | 11 | "reflect" |
11 | 12 | "strconv" |
@@ -45,7 +46,7 @@ func ExampleApp_Run() { |
45 | 46 | return nil |
46 | 47 | }, |
47 | 48 | UsageText: "app [first_arg] [second_arg]", |
48 | | - Authors: [] *Author{{ Name: "Oliver Allen", Email: "[email protected]"}}, |
| 49 | + Authors: [] *mail.Address{{ Name: "Oliver Allen", Address: "[email protected]"}}, |
49 | 50 | } |
50 | 51 |
|
51 | 52 | app.Run(os.Args) |
@@ -100,9 +101,9 @@ func ExampleApp_Run_appHelp() { |
100 | 101 | Name: "greet", |
101 | 102 | Version: "0.1.0", |
102 | 103 | Description: "This is how we describe greet the app", |
103 | | - Authors: []*Author{ |
104 | | - { Name: "Harrison", Email: "[email protected]"}, |
105 | | - { Name: "Oliver Allen", Email: "[email protected]"}, |
| 104 | + Authors: []*mail.Address{ |
| 105 | + { Name: "Harrison", Address: "[email protected]"}, |
| 106 | + { Name: "Oliver Allen", Address: "[email protected]"}, |
106 | 107 | }, |
107 | 108 | Flags: []Flag{ |
108 | 109 | &StringFlag{Name: "name", Value: "bob", Usage: "a name to say"}, |
@@ -135,8 +136,8 @@ func ExampleApp_Run_appHelp() { |
135 | 136 | // This is how we describe greet the app |
136 | 137 | // |
137 | 138 | // AUTHORS: |
138 | | - |
139 | | - // Oliver Allen <[email protected]> |
| 139 | + |
| 140 | + // "Oliver Allen" <[email protected]> |
140 | 141 | // |
141 | 142 | // COMMANDS: |
142 | 143 | // describeit, d use it to see a description |
|
0 commit comments