MCPcopy Index your code
hub / github.com/google/go-github / sortOperations

Function sortOperations

tools/metadata/metadata.go:74–80  ·  view source on GitHub ↗
(ops []*operation)

Source from the content-addressed store, hash-verified

72}
73
74func sortOperations(ops []*operation) {
75 slices.SortFunc(ops, func(a, b *operation) int {
76 leftVerb, leftURL := parseOpName(a.Name)
77 rightVerb, rightURL := parseOpName(b.Name)
78 return cmp.Or(cmp.Compare(leftURL, rightURL), cmp.Compare(leftVerb, rightVerb))
79 })
80}
81
82// normalizeOpPath returns an endpoint with all templated path parameters replaced with *.
83func normalizeOpPath(opPath string) string {

Callers 4

getOpsFromGithubFunction · 0.85
saveFileMethod · 0.85
unusedOpsFunction · 0.85
methodOpsFunction · 0.85

Calls 1

parseOpNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…