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

Method GoName

pkg/codegen/operations.go:213–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213func (pd ParameterDefinition) GoName() string {
214 goName := pd.ParamName
215 if extension, ok := pd.Spec.Extensions[extGoName]; ok {
216 if extGoFieldName, err := extParseGoFieldName(extension); err == nil {
217 goName = extGoFieldName
218 }
219 }
220 return SchemaNameToTypeName(goName)
221}
222
223// Deprecated: Use HasOptionalPointer, as it is clearer what the intent is.
224func (pd ParameterDefinition) IndirectOptional() bool {

Callers 1

GoVariableNameMethod · 0.95

Calls 2

extParseGoFieldNameFunction · 0.85
SchemaNameToTypeNameFunction · 0.85

Tested by

no test coverage detected