MCPcopy Index your code
hub / github.com/SolarLune/masterplan / Get

Method Get

menu.go:95–111  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

93}
94
95func (ms *MenuSystem) Get(name string) *Menu {
96
97 for _, menu := range ms.Menus {
98 if menu.Name == name {
99 return menu
100 }
101 }
102
103 for _, menu := range ms.ExclusiveMenus {
104 if menu.Name == name {
105 return menu
106 }
107 }
108
109 return nil
110
111}
112
113func (ms *MenuSystem) Has(name string) bool {
114 return ms.Get(name) != nil

Callers 15

HasMethod · 0.95
TakeScreenshotFunction · 0.45
handleScreenshotsFunction · 0.45
UndoMethod · 0.45
RedoMethod · 0.45
NameMethod · 0.45
DeserializePageDataMethod · 0.45
DeserializeCardsMethod · 0.45
UpdateLinksMethod · 0.45
PasteCardsMethod · 0.45
HandleDroppedFilesMethod · 0.45
HandleExternalPasteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected