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

Function extString

pkg/codegen/extension.go:38–44  ·  view source on GitHub ↗
(extPropValue any)

Source from the content-addressed store, hash-verified

36)
37
38func extString(extPropValue any) (string, error) {
39 str, ok := extPropValue.(string)
40 if !ok {
41 return "", fmt.Errorf("failed to convert type: %T", extPropValue)
42 }
43 return str, nil
44}
45
46func extTypeName(extPropValue any) (string, error) {
47 return extString(extPropValue)

Callers 4

GenerateGoSchemaFunction · 0.85
extTypeNameFunction · 0.85
extParseGoFieldNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected