Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-18 00:03:27 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-18 00:03:27 +0300
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /markup/goldmark/convert_test.go
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'markup/goldmark/convert_test.go')
-rw-r--r--markup/goldmark/convert_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/markup/goldmark/convert_test.go b/markup/goldmark/convert_test.go
index 83d97f222..e37e81c97 100644
--- a/markup/goldmark/convert_test.go
+++ b/markup/goldmark/convert_test.go
@@ -44,7 +44,7 @@ func convert(c *qt.C, mconf markup_config.Config, content string) converter.Resu
c.Assert(err, qt.IsNil)
h := highlight.New(mconf.Highlight)
- getRenderer := func(t hooks.RendererType, id interface{}) interface{} {
+ getRenderer := func(t hooks.RendererType, id any) any {
if t == hooks.CodeBlockRendererType {
return h
}
@@ -233,7 +233,7 @@ func TestConvertAttributes(t *testing.T) {
name string
withConfig func(conf *markup_config.Config)
input string
- expect interface{}
+ expect any
}{
{
"Title",
@@ -408,7 +408,7 @@ LINE5
h := highlight.New(conf)
- getRenderer := func(t hooks.RendererType, id interface{}) interface{} {
+ getRenderer := func(t hooks.RendererType, id any) any {
if t == hooks.CodeBlockRendererType {
return h
}