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

Method SetPage

menu.go:569–572  ·  view source on GitHub ↗
(pageName string)

Source from the content-addressed store, hash-verified

567}
568
569func (menu *Menu) SetPage(pageName string) {
570 menu.NextPage = pageName
571 menu.PageThread = append(menu.PageThread, pageName)
572}
573
574func (menu *Menu) CanGoBack() bool {
575 return len(menu.PageThread) > 1

Callers 10

NewMenuFunction · 0.95
SetPrevPageMethod · 0.95
CloseMethod · 0.95
ConstructMenusFunction · 0.95
UndoMethod · 0.45
RedoMethod · 0.45
OpenSubpageMethod · 0.45
AddPageMethod · 0.45
FocusOnMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected