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

Method FindElementName

gui.go:2954–2964  ·  view source on GitHub ↗
(element MenuElement)

Source from the content-addressed store, hash-verified

2952}
2953
2954func (row *ContainerRow) FindElementName(element MenuElement) string {
2955
2956 for elementName, e := range row.Elements {
2957 if e == element {
2958 return elementName
2959 }
2960 }
2961
2962 return ""
2963
2964}
2965
2966// Add a MenuElement to the ContainerRow.
2967func (row *ContainerRow) Add(name string, element MenuElement) {

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected