diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /navigation | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) | |
download | hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'navigation')
-rw-r--r-- | navigation/menu.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navigation/menu.go b/navigation/menu.go index b4f5e7af5..2693f0ac8 100644 --- a/navigation/menu.go +++ b/navigation/menu.go @@ -73,7 +73,7 @@ type Page interface { Weight() int IsPage() bool IsSection() bool - IsAncestor(other interface{}) (bool, error) + IsAncestor(other any) (bool, error) Params() maps.Params } @@ -131,7 +131,7 @@ func (m *MenuEntry) isSamePage(p Page) bool { return false } -func (m *MenuEntry) MarshallMap(ime map[string]interface{}) error { +func (m *MenuEntry) MarshallMap(ime map[string]any) error { var err error for k, v := range ime { loki := strings.ToLower(k) |