all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -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)