diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /resources/page/page_nop.go | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'resources/page/page_nop.go')
-rw-r--r-- | resources/page/page_nop.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/resources/page/page_nop.go b/resources/page/page_nop.go index 52345ad71..67b8b8d4b 100644 --- a/resources/page/page_nop.go +++ b/resources/page/page_nop.go @@ -96,7 +96,7 @@ func (p *nopPage) BundleType() files.ContentClass { return "" } -func (p *nopPage) Content() (interface{}, error) { +func (p *nopPage) Content() (any, error) { return "", nil } @@ -108,7 +108,7 @@ func (p *nopPage) CurrentSection() Page { return nil } -func (p *nopPage) Data() interface{} { +func (p *nopPage) Data() any { return nil } @@ -120,11 +120,11 @@ func (p *nopPage) Description() string { return "" } -func (p *nopPage) RefFrom(argsm map[string]interface{}, source interface{}) (string, error) { +func (p *nopPage) RefFrom(argsm map[string]any, source any) (string, error) { return "", nil } -func (p *nopPage) RelRefFrom(argsm map[string]interface{}, source interface{}) (string, error) { +func (p *nopPage) RelRefFrom(argsm map[string]any, source any) (string, error) { return "", nil } @@ -136,7 +136,7 @@ func (p *nopPage) Draft() bool { return false } -func (p *nopPage) Eq(other interface{}) bool { +func (p *nopPage) Eq(other any) bool { return p == other } @@ -182,7 +182,7 @@ func (p *nopPage) GetPageWithTemplateInfo(info tpl.Info, ref string) (Page, erro return nil, nil } -func (p *nopPage) GetParam(key string) interface{} { +func (p *nopPage) GetParam(key string) any { return nil } @@ -210,15 +210,15 @@ func (p *nopPage) Hugo() (h hugo.Info) { return } -func (p *nopPage) InSection(other interface{}) (bool, error) { +func (p *nopPage) InSection(other any) (bool, error) { return false, nil } -func (p *nopPage) IsAncestor(other interface{}) (bool, error) { +func (p *nopPage) IsAncestor(other any) (bool, error) { return false, nil } -func (p *nopPage) IsDescendant(other interface{}) (bool, error) { +func (p *nopPage) IsDescendant(other any) (bool, error) { return false, nil } @@ -314,15 +314,15 @@ func (p *nopPage) RegularPagesRecursive() Pages { return nil } -func (p *nopPage) Paginate(seq interface{}, options ...interface{}) (*Pager, error) { +func (p *nopPage) Paginate(seq any, options ...any) (*Pager, error) { return nil, nil } -func (p *nopPage) Paginator(options ...interface{}) (*Pager, error) { +func (p *nopPage) Paginator(options ...any) (*Pager, error) { return nil, nil } -func (p *nopPage) Param(key interface{}) (interface{}, error) { +func (p *nopPage) Param(key any) (any, error) { return nil, nil } @@ -390,7 +390,7 @@ func (p *nopPage) ReadingTime() int { return 0 } -func (p *nopPage) Ref(argsm map[string]interface{}) (string, error) { +func (p *nopPage) Ref(argsm map[string]any) (string, error) { return "", nil } @@ -398,7 +398,7 @@ func (p *nopPage) RelPermalink() string { return "" } -func (p *nopPage) RelRef(argsm map[string]interface{}) (string, error) { +func (p *nopPage) RelRef(argsm map[string]any) (string, error) { return "", nil } @@ -406,7 +406,7 @@ func (p *nopPage) Render(layout ...string) (template.HTML, error) { return "", nil } -func (p *nopPage) RenderString(args ...interface{}) (template.HTML, error) { +func (p *nopPage) RenderString(args ...any) (template.HTML, error) { return "", nil } |