MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mainGo

Function mainGo

__tests__/go-local-shadows-function.test.ts:41–43  ·  view source on GitHub ↗

`package main` with the package-level `run`, `body`, and a `main` that calls `call`.

(body: string, call: string)

Source from the content-addressed store, hash-verified

39
40/** `package main` with the package-level `run`, `body`, and a `main` that calls `call`. */
41function mainGo(body: string, call: string): Record<string, string> {
42 return { 'go.mod': GO_MOD, 'main.go': `package main\n\n${RUN}\n\n${body}\n\nfunc main() { ${call} }\n` };
43}
44
45afterEach(() => {
46 cg?.close();

Calls

no outgoing calls

Tested by

no test coverage detected