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

Function pushGoJSONRawStructDeclLines

scripts/codegen/go.ts:1535–1548  ·  view source on GitHub ↗
(
    lines: string[],
    structVar: string,
    propNames: string[],
    indent: string
)

Source from the content-addressed store, hash-verified

1533}
1534
1535function pushGoJSONRawStructDeclLines(
1536 lines: string[],
1537 structVar: string,
1538 propNames: string[],
1539 indent: string
1540): Map<string, string> {
1541 const fieldNames = goJSONRawStructFields(propNames);
1542 lines.push(`${indent}var ${structVar} struct {`);
1543 for (const [propName, fieldName] of fieldNames) {
1544 lines.push(`${indent}\t${fieldName} json.RawMessage \`json:"${propName}"\``);
1545 }
1546 lines.push(`${indent}}`);
1547 return fieldNames;
1548}
1549
1550function pushGoJSONRawStructUnmarshalLines(
1551 lines: string[],

Calls 2

goJSONRawStructFieldsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…