groupByName groups ResolvedNames by their current GoName.
(names []*ResolvedName)
| 138 | |
| 139 | // groupByName groups ResolvedNames by their current GoName. |
| 140 | func 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.). |
no outgoing calls
no test coverage detected
searching dependent graphs…