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 /tpl/debug | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'tpl/debug')
-rw-r--r-- | tpl/debug/debug.go | 2 | ||||
-rw-r--r-- | tpl/debug/init.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/debug/debug.go b/tpl/debug/debug.go index 693b97adc..04fb71565 100644 --- a/tpl/debug/debug.go +++ b/tpl/debug/debug.go @@ -35,6 +35,6 @@ type Namespace struct { // nicely. // Also note that the output from Dump may change from Hugo version to the next, // so don't depend on a specific output. -func (ns *Namespace) Dump(val interface{}) string { +func (ns *Namespace) Dump(val any) string { return litter.Sdump(val) } diff --git a/tpl/debug/init.go b/tpl/debug/init.go index 1f032ce69..bf59ae030 100644 --- a/tpl/debug/init.go +++ b/tpl/debug/init.go @@ -26,7 +26,7 @@ func init() { ns := &internal.TemplateFuncsNamespace{ Name: name, - Context: func(args ...interface{}) (interface{}, error) { return ctx, nil }, + Context: func(args ...any) (any, error) { return ctx, nil }, } ns.AddMethodMapping(ctx.Dump, |