ExampleCLIFiles returns an example client tool HTTP implementation for each server expression.
(genpkg string, services *ServicesData)
| 13 | // ExampleCLIFiles returns an example client tool HTTP implementation for each |
| 14 | // server expression. |
| 15 | func ExampleCLIFiles(genpkg string, services *ServicesData) []*codegen.File { |
| 16 | var files []*codegen.File |
| 17 | for _, svr := range services.Root.API.Servers { |
| 18 | if f := ExampleCLI(genpkg, svr, services); f != nil { |
| 19 | files = append(files, f) |
| 20 | } |
| 21 | } |
| 22 | return files |
| 23 | } |
| 24 | |
| 25 | // ExampleCLI returns an example client tool HTTP implementation for the given |
| 26 | // server expression. |