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

Function GenerateChiServer

pkg/codegen/operations.go:1274–1276  ·  view source on GitHub ↗

GenerateChiServer 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

1272// GenerateChiServer generates all the go code for the ServerInterface as well as
1273// all the wrapper functions around our handlers.
1274func GenerateChiServer(t *template.Template, operations []OperationDefinition) (string, error) {
1275 return GenerateTemplates([]string{"chi/chi-interface.tmpl", "chi/chi-middleware.tmpl", "chi/chi-handler.tmpl"}, t, operations)
1276}
1277
1278// GenerateFiberServer generates all the go code for the ServerInterface as well as
1279// all the wrapper functions around our handlers.

Callers 1

GenerateFunction · 0.85

Calls 1

GenerateTemplatesFunction · 0.85

Tested by

no test coverage detected