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

Function formatGoFile

scripts/codegen/go.ts:398–405  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

396}
397
398async function formatGoFile(filePath: string): Promise<void> {
399 try {
400 await execFileAsync("go", ["fmt", filePath]);
401 console.log(` ✓ Formatted with go fmt`);
402 } catch {
403 // go fmt not available, skip
404 }
405}
406
407function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
408 const results: RpcMethod[] = [];

Callers 2

generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…