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

Function goMethodDocSummary

scripts/codegen/go.ts:267–272  ·  view source on GitHub ↗
(methodName: string, method: RpcMethod, fallbackVerb = "calls")

Source from the content-addressed store, hash-verified

265}
266
267function goMethodDocSummary(methodName: string, method: RpcMethod, fallbackVerb = "calls"): string {
268 const description = method.description?.trim();
269 if (!description) return `${methodName} ${fallbackVerb} ${method.rpcMethod}.`;
270 if (description.startsWith(methodName)) return description;
271 return `${methodName} ${lowerFirst(description)}`;
272}
273
274function goRpcResultDescription(method: RpcMethod, resultSchema: JSONSchema7 | undefined): string | undefined {
275 if (isVoidSchema(resultSchema)) return undefined;

Callers 1

pushGoRpcMethodCommentFunction · 0.85

Calls 1

lowerFirstFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…