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

Function getGoSharedEventEnvelopeProperties

scripts/codegen/go.ts:587–603  ·  view source on GitHub ↗
(schema: JSONSchema7, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

585}
586
587function getGoSharedEventEnvelopeProperties(schema: JSONSchema7, ctx: GoCodegenCtx): GoEventEnvelopeProperty[] {
588 return getSharedSessionEventEnvelopeProperties(schema, ctx.definitions)
589 .map((property) => {
590 const { name, schema, required } = property;
591 const typeName = resolveGoPropertyType(schema, "SessionEvent", name, required && !getNullableInner(schema), ctx);
592
593 return {
594 name,
595 schema,
596 required,
597 fieldName: toGoFieldName(name),
598 typeName,
599 jsonTag: goJSONTag(name, required, typeName),
600 description: schema.description,
601 };
602 });
603}
604
605function emitGoEnvelopeStructField(property: GoEventEnvelopeProperty, includeComment: boolean, wrapComments = true): string[] {
606 const lines: string[] = [];

Callers 1

Calls 5

resolveGoPropertyTypeFunction · 0.85
getNullableInnerFunction · 0.85
toGoFieldNameFunction · 0.85
goJSONTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…