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

Function goDeclaredTypeName

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

Source from the content-addressed store, hash-verified

3096}
3097
3098function goDeclaredTypeName(code: string): string {
3099 return /^type\s+(\w+)\b/m.exec(code)?.[1] ?? code;
3100}
3101
3102/**
3103 * Generate the complete Go session-events file content.

Callers 1

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…