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

Function sortByGoFieldName

scripts/codegen/go.ts:150–152  ·  view source on GitHub ↗
(entries: [string, T][])

Source from the content-addressed store, hash-verified

148}
149
150function sortByGoFieldName<T>(entries: [string, T][]): [string, T][] {
151 return entries.sort(([left], [right]) => compareGoFieldNames(toGoFieldName(left), toGoFieldName(right)));
152}
153
154function sortByPascalName<T>(entries: [string, T][]): [string, T][] {
155 return entries.sort(([left], [right]) => toPascalCase(left).localeCompare(toPascalCase(right)));

Callers 5

emitGoStructFunction · 0.85

Calls 2

compareGoFieldNamesFunction · 0.85
toGoFieldNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…