MCPcopy Create free account
hub / github.com/a-h/rest / mergeMap

Function mergeMap

api.go:170–177  ·  view source on GitHub ↗
(into, from map[TKey]TValue)

Source from the content-addressed store, hash-verified

168}
169
170func mergeMap[TKey comparable, TValue any](into, from map[TKey]TValue) {
171 for kf, vf := range from {
172 _, ok := into[kf]
173 if !ok {
174 into[kf] = vf
175 }
176 }
177}
178
179// Spec creates an OpenAPI 3.0 specification document for the API.
180func (api *API) Spec() (spec *openapi3.T, err error) {

Callers 1

MergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected