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

Method String

pkg/codegen/codegen.go:78–83  ·  view source on GitHub ↗

String returns a go import statement

()

Source from the content-addressed store, hash-verified

76
77// String returns a go import statement
78func (gi goImport) String() string {
79 if gi.Name != "" {
80 return fmt.Sprintf("%s %q", gi.Name, gi.Path)
81 }
82 return fmt.Sprintf("%q", gi.Path)
83}
84
85// importMap maps external OpenAPI specifications files/urls to external go packages
86type importMap map[string]goImport

Callers 15

genResponsePayloadFunction · 0.45
genResponseUnmarshalFunction · 0.45
ResolveNamesFunction · 0.45
strategyNumericFallbackFunction · 0.45
ToCamelCaseFunction · 0.45
ToCamelCaseWithDigitsFunction · 0.45
GoImportsMethod · 0.45
GenerateFunction · 0.45
GoSchemaImportsFunction · 0.45
GenerateTemplatesFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestDashedPathParamFunction · 0.36
testImplFunction · 0.36
testImplFunction · 0.36
testImplFunction · 0.36
TestAnyOfParameterFunction · 0.36
testImplFunction · 0.36
testImplFunction · 0.36
TestTextEndpoint_SuccessFunction · 0.36