MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / GenerateIrisServer

Function GenerateIrisServer

pkg/codegen/operations.go:1268–1270  ·  view source on GitHub ↗

GenerateIrisServer generates all the go code for the ServerInterface as well as all the wrapper functions around our handlers.

(t *template.Template, operations []OperationDefinition)

Source from the content-addressed store, hash-verified

1266// GenerateIrisServer generates all the go code for the ServerInterface as well as
1267// all the wrapper functions around our handlers.
1268func GenerateIrisServer(t *template.Template, operations []OperationDefinition) (string, error) {
1269 return GenerateTemplates([]string{"iris/iris-interface.tmpl", "iris/iris-middleware.tmpl", "iris/iris-handler.tmpl"}, t, operations)
1270}
1271
1272// GenerateChiServer generates all the go code for the ServerInterface as well as
1273// all the wrapper functions around our handlers.

Callers 1

GenerateFunction · 0.85

Calls 1

GenerateTemplatesFunction · 0.85

Tested by

no test coverage detected