(elementName string, wild bool)
| 3162 | } |
| 3163 | |
| 3164 | func (container *Container) FindElement(elementName string, wild bool) MenuElement { |
| 3165 | for _, row := range container.Rows { |
| 3166 | for name, element := range row.Elements { |
| 3167 | if (wild && strings.Contains(name, elementName)) || (!wild && name == elementName) { |
| 3168 | return element |
| 3169 | } |
| 3170 | } |
| 3171 | } |
| 3172 | return nil |
| 3173 | } |
| 3174 | |
| 3175 | func (container *Container) FindRows(elementName string, wild bool) []*ContainerRow { |
| 3176 | found := []*ContainerRow{} |
no test coverage detected