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

Function compareGoDiscriminatorValues

scripts/codegen/go.ts:804–809  ·  view source on GitHub ↗
(left: GoDiscriminatorValue, right: GoDiscriminatorValue)

Source from the content-addressed store, hash-verified

802}
803
804function compareGoDiscriminatorValues(left: GoDiscriminatorValue, right: GoDiscriminatorValue): number {
805 if (typeof left === "boolean" && typeof right === "boolean") {
806 return Number(left) - Number(right);
807 }
808 return String(left).localeCompare(String(right));
809}
810
811function goDiscriminatorValueExpr(value: GoDiscriminatorValue, enumName: string | undefined): string {
812 if (typeof value === "boolean") return value ? "true" : "false";

Callers

nothing calls this directly

Calls 1

StringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…