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

Function goUnionFieldType

scripts/codegen/go.ts:2436–2439  ·  view source on GitHub ↗
(member: JSONSchema7, fieldName: string, parentTypeName: string, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

2434}
2435
2436function goUnionFieldType(member: JSONSchema7, fieldName: string, parentTypeName: string, ctx: GoCodegenCtx): string {
2437 const memberType = resolveGoPropertyType(member, parentTypeName, fieldName, true, ctx);
2438 return goTypeWithOptionalPointer(memberType, ctx);
2439}
2440
2441function goUnionFieldMarshalIsSet(fieldName: string, fieldType: string, ctx: GoCodegenCtx): string {
2442 if (goTypeIsNilable(fieldType, ctx)) {

Callers 1

emitGoUnionWrapperStructFunction · 0.85

Calls 2

resolveGoPropertyTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…