(
lines: string[],
structVar: string,
propNames: string[],
indent: string
)
| 1533 | } |
| 1534 | |
| 1535 | function 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 | |
| 1550 | function pushGoJSONRawStructUnmarshalLines( |
| 1551 | lines: string[], |
no test coverage detected
searching dependent graphs…