diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2023-11-07 20:23:45 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-11-16 18:22:31 +0100 |
commit | 80d2fdbaa0dd02d7634df622c46841a5671b4dc2 (patch) | |
tree | 6d09c429d88902d96931e2065ed49c84f88ab986 /navigation/menu.go | |
parent | 805cc1773be96ccb29740c9a40b7cd10949caa63 (diff) |
navigation: Unexport menu entry methods
- MenuEntry.IsEqual
- MenuEntry.IsSameResource
Closes #11670
Diffstat (limited to 'navigation/menu.go')
-rw-r--r-- | navigation/menu.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navigation/menu.go b/navigation/menu.go index a5b74b6fa..50e51bcbe 100644 --- a/navigation/menu.go +++ b/navigation/menu.go @@ -124,14 +124,14 @@ func (m *MenuEntry) hopefullyUniqueID() string { } } -// IsEqual returns whether the two menu entries represents the same menu entry. -func (m *MenuEntry) IsEqual(inme *MenuEntry) bool { +// isEqual returns whether the two menu entries represents the same menu entry. +func (m *MenuEntry) isEqual(inme *MenuEntry) bool { return m.hopefullyUniqueID() == inme.hopefullyUniqueID() && m.Parent == inme.Parent } -// IsSameResource returns whether the two menu entries points to the same +// isSameResource returns whether the two menu entries points to the same // resource (URL). -func (m *MenuEntry) IsSameResource(inme *MenuEntry) bool { +func (m *MenuEntry) isSameResource(inme *MenuEntry) bool { if m.isSamePage(inme.Page) { return m.Page == inme.Page } |