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

Function wrapGeneratedGoComments

scripts/codegen/go.ts:324–335  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

322}
323
324function wrapGeneratedGoComments(code: string): string {
325 return code
326 .split(/\r?\n/)
327 .flatMap((line) => {
328 const match = /^(\s*)\/\/\s?(.*)$/.exec(line);
329 if (!match) return [line];
330 const [, indent, text] = match;
331 if (text.length <= goCommentTextWrapLength) return [line];
332 return goCommentLines(text, indent);
333 })
334 .join("\n");
335}
336
337interface GoExtractedField {
338 name: string;

Callers 2

generateRpcFunction · 0.85

Calls 3

goCommentLinesFunction · 0.85
joinMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…