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

Function goTypeWithOptionalPointer

scripts/codegen/go.ts:385–387  ·  view source on GitHub ↗
(goType: string, ctx?: GoCodegenCtx)

Source from the content-addressed store, hash-verified

383}
384
385function goTypeWithOptionalPointer(goType: string, ctx?: GoCodegenCtx): string {
386 return goTypeIsNilable(goType, ctx) ? goType : `*${goType}`;
387}
388
389function goJSONOmitSuffix(required: boolean, goType: string): string {
390 if (required) return "";

Callers 2

resolveGoPropertyTypeFunction · 0.85
goUnionFieldTypeFunction · 0.85

Calls 1

goTypeIsNilableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…