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

Function genParamNames

pkg/codegen/template_helpers.go:106–115  ·  view source on GitHub ↗

This is another variation of the function above which generates only the parameter names: ", foo, bar, baz"

(params []ParameterDefinition)

Source from the content-addressed store, hash-verified

104// parameter names:
105// ", foo, bar, baz"
106func genParamNames(params []ParameterDefinition) string {
107 if len(params) == 0 {
108 return ""
109 }
110 parts := make([]string, len(params))
111 for i, p := range params {
112 parts[i] = p.GoVariableName()
113 }
114 return ", " + strings.Join(parts, ", ")
115}
116
117// genResponsePayload generates the payload returned at the end of each client request function
118func genResponsePayload(operationID string) string {

Callers

nothing calls this directly

Calls 1

GoVariableNameMethod · 0.80

Tested by

no test coverage detected