MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / groupByName

Function groupByName

pkg/codegen/resolve_names.go:140–146  ·  view source on GitHub ↗

groupByName groups ResolvedNames by their current GoName.

(names []*ResolvedName)

Source from the content-addressed store, hash-verified

138
139// groupByName groups ResolvedNames by their current GoName.
140func groupByName(names []*ResolvedName) map[string][]*ResolvedName {
141 groups := make(map[string][]*ResolvedName)
142 for _, n := range names {
143 groups[n.GoName] = append(groups[n.GoName], n)
144 }
145 return groups
146}
147
148// strategyContextSuffix attempts to resolve collisions by appending a suffix
149// derived from the schema's context (Schema, Parameter, Response, etc.).

Callers 1

resolveCollisionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…