MCPcopy Create free account
hub / github.com/google/go-github / normalizedOpName

Function normalizedOpName

tools/metadata/metadata.go:99–102  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

97}
98
99func normalizedOpName(name string) string {
100 verb, u := parseOpName(name)
101 return strings.TrimSpace(verb + " " + normalizeOpPath(u))
102}
103
104// matches something like "GET /some/path".
105var opNameRe = regexp.MustCompile(`(?i)(\S+)(?:\s+(\S.*))?`)

Callers 2

methodOpsFunction · 0.85
Test_normalizedOpNameFunction · 0.85

Calls 2

parseOpNameFunction · 0.85
normalizeOpPathFunction · 0.85

Tested by 1

Test_normalizedOpNameFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…