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

Function emitGoEnvelopeStructField

scripts/codegen/go.ts:605–612  ·  view source on GitHub ↗
(property: GoEventEnvelopeProperty, includeComment: boolean, wrapComments = true)

Source from the content-addressed store, hash-verified

603}
604
605function emitGoEnvelopeStructField(property: GoEventEnvelopeProperty, includeComment: boolean, wrapComments = true): string[] {
606 const lines: string[] = [];
607 if (includeComment && property.description) {
608 pushGoComment(lines, property.description, "\t", wrapComments);
609 }
610 lines.push(`\t${property.fieldName} ${property.typeName} \`${property.jsonTag}\``);
611 return lines;
612}
613
614function sortedGoEventEnvelopeProperties(properties: GoEventEnvelopeProperty[]): GoEventEnvelopeProperty[] {
615 return [...properties].sort((left, right) => compareGoFieldNames(left.fieldName, right.fieldName));

Callers 1

Calls 2

pushGoCommentFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…