diff options
Diffstat (limited to 'tpl/diagrams')
-rw-r--r-- | tpl/diagrams/diagrams.go | 2 | ||||
-rw-r--r-- | tpl/diagrams/init.go | 2 |
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 |