MCPcopy Create free account
hub / github.com/goadesign/goa / ExampleCLIFiles

Function ExampleCLIFiles

http/codegen/example_cli.go:15–23  ·  view source on GitHub ↗

ExampleCLIFiles returns an example client tool HTTP implementation for each server expression.

(genpkg string, services *ServicesData)

Source from the content-addressed store, hash-verified

13// ExampleCLIFiles returns an example client tool HTTP implementation for each
14// server expression.
15func 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.

Callers 1

TestExampleCLIFilesFunction · 0.70

Calls 1

ExampleCLIFunction · 0.85

Tested by 1

TestExampleCLIFilesFunction · 0.56