aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/diagrams
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /tpl/diagrams
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
downloadhugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz
hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'tpl/diagrams')
-rw-r--r--tpl/diagrams/diagrams.go2
-rw-r--r--tpl/diagrams/init.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/diagrams/diagrams.go b/tpl/diagrams/diagrams.go
index 60ebfb902..7f0a171b2 100644
--- a/tpl/diagrams/diagrams.go
+++ b/tpl/diagrams/diagrams.go
@@ -63,7 +63,7 @@ type Diagrams struct {
d *deps.Deps
}
-func (d *Diagrams) Goat(v interface{}) SVGDiagram {
+func (d *Diagrams) Goat(v any) SVGDiagram {
var r io.Reader
switch vv := v.(type) {
diff --git a/tpl/diagrams/init.go b/tpl/diagrams/init.go
index 1a5578837..fed85e6a3 100644
--- a/tpl/diagrams/init.go
+++ b/tpl/diagrams/init.go
@@ -28,7 +28,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 },
}
return ns