MCPcopy Create free account
hub / github.com/github/copilot-sdk / goUnionFieldUnmarshalType

Function goUnionFieldUnmarshalType

scripts/codegen/go.ts:2448–2453  ·  view source on GitHub ↗
(fieldType: string)

Source from the content-addressed store, hash-verified

2446}
2447
2448function goUnionFieldUnmarshalType(fieldType: string): string {
2449 if (goTypeIsPointer(fieldType)) {
2450 return fieldType.slice(1);
2451 }
2452 return fieldType;
2453}
2454
2455function goUnionFieldUnmarshalAssignment(typeName: string, fieldName: string, fieldType: string): string {
2456 if (goTypeIsPointer(fieldType)) {

Callers 1

emitGoUnionWrapperStructFunction · 0.85

Calls 1

goTypeIsPointerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…