MCPcopy Index your code
hub / github.com/github/copilot-sdk / goPrimitiveUnionFieldName

Function goPrimitiveUnionFieldName

scripts/codegen/go.ts:2425–2434  ·  view source on GitHub ↗
(schema: JSONSchema7)

Source from the content-addressed store, hash-verified

2423}
2424
2425function goPrimitiveUnionFieldName(schema: JSONSchema7): string {
2426 switch (schema.type) {
2427 case "boolean": return "Bool";
2428 case "integer": return "Integer";
2429 case "number": return "Double";
2430 case "string": return "String";
2431 case "object": return "Object";
2432 default: return "Any";
2433 }
2434}
2435
2436function goUnionFieldType(member: JSONSchema7, fieldName: string, parentTypeName: string, ctx: GoCodegenCtx): string {
2437 const memberType = resolveGoPropertyType(member, parentTypeName, fieldName, true, ctx);

Callers 1

goUnionFieldNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…