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

Function goOptionalFieldNeedsDereference

scripts/codegen/go.ts:381–383  ·  view source on GitHub ↗
(goType: string | undefined)

Source from the content-addressed store, hash-verified

379}
380
381function goOptionalFieldNeedsDereference(goType: string | undefined): boolean {
382 return goType === undefined || goTypeIsPointer(goType);
383}
384
385function goTypeWithOptionalPointer(goType: string, ctx?: GoCodegenCtx): string {
386 return goTypeIsNilable(goType, ctx) ? goType : `*${goType}`;

Callers 1

emitMethodFunction · 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…