MCPcopy Create free account
hub / github.com/goadesign/goa / Merge

Method Merge

expr/mapped_attribute.go:178–184  ·  view source on GitHub ↗

Merge merges other's attributes into a overriding attributes of a with attributes of other with identical names.

(other *MappedAttributeExpr)

Source from the content-addressed store, hash-verified

176// Merge merges other's attributes into a overriding attributes of a with
177// attributes of other with identical names.
178func (ma *MappedAttributeExpr) Merge(other *MappedAttributeExpr) {
179 if other == nil {
180 return
181 }
182 ma.AttributeExpr.Merge(other.Attribute())
183 ma.Remap()
184}
185
186// FindKey finds the given key in the mapped attribute expression.
187// If key is found, it returns the transport element name of the key and true.

Callers

nothing calls this directly

Calls 2

RemapMethod · 0.95
AttributeMethod · 0.65

Tested by

no test coverage detected