ContainsAttribute checks whether the list of Core Attributes contains an attribute with the given name.
(name string)
| 33 | |
| 34 | // ContainsAttribute checks whether the list of Core Attributes contains an attribute with the given name. |
| 35 | func (as Attributes) ContainsAttribute(name string) (CoreAttribute, bool) { |
| 36 | for _, a := range as { |
| 37 | if strings.EqualFold(name, a.name) { |
| 38 | return a, true |
| 39 | } |
| 40 | } |
| 41 | return CoreAttribute{}, false |
| 42 | } |
| 43 | |
| 44 | // Schema is a collection of attribute definitions that describe the contents of an entire or partial resource. |
| 45 | type Schema struct { |
no outgoing calls