MCPcopy Create free account
hub / github.com/SolarLune/masterplan / FindRows

Method FindRows

gui.go:3175–3186  ·  view source on GitHub ↗
(elementName string, wild bool)

Source from the content-addressed store, hash-verified

3173}
3174
3175func (container *Container) FindRows(elementName string, wild bool) []*ContainerRow {
3176 found := []*ContainerRow{}
3177 for _, row := range container.Rows {
3178 for name := range row.Elements {
3179 if (!wild && name == elementName) || (wild && strings.Contains(name, elementName)) {
3180 found = append(found, row)
3181 break
3182 }
3183 }
3184 }
3185 return found
3186}
3187
3188func (container *Container) HasElement(element MenuElement) bool {
3189 for _, row := range container.Rows {

Callers 1

ConstructMenusFunction · 0.80

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected