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 /hugolib/shortcode_test.go | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 9fc9a9675..1f2a71bc9 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -43,7 +43,7 @@ func CheckShortCodeMatchAndError(t *testing.T, input, expected string, withTempl t.Helper() cfg, fs := newTestCfg() - cfg.Set("markup", map[string]interface{}{ + cfg.Set("markup", map[string]any{ "defaultMarkdownHandler": "blackfriday", // TODO(bep) }) @@ -458,7 +458,7 @@ func TestShortcodesInSite(t *testing.T) { contentPath string content string outFile string - expected interface{} + expected any }{ { "sect/doc1.md", `a{{< b >}}c`, @@ -612,15 +612,15 @@ title: "Foo" cfg.Set("uglyURLs", false) cfg.Set("verbose", true) - cfg.Set("security", map[string]interface{}{ - "exec": map[string]interface{}{ + cfg.Set("security", map[string]any{ + "exec": map[string]any{ "allow": []string{"^python$", "^rst2html.*", "^asciidoctor$"}, }, }) cfg.Set("markup.highlight.noClasses", false) cfg.Set("markup.highlight.codeFences", true) - cfg.Set("markup", map[string]interface{}{ + cfg.Set("markup", map[string]any{ "defaultMarkdownHandler": "blackfriday", // TODO(bep) }) @@ -821,7 +821,7 @@ func TestReplaceShortcodeTokens(t *testing.T) { input string prefix string replacements map[string]string - expect interface{} + expect any }{ {"Hello HAHAHUGOSHORTCODE-1HBHB.", "PREFIX", map[string]string{"HAHAHUGOSHORTCODE-1HBHB": "World"}, "Hello World."}, {"Hello HAHAHUGOSHORTCODE-1@}@.", "PREFIX", map[string]string{"HAHAHUGOSHORTCODE-1HBHB": "World"}, false}, @@ -1279,10 +1279,10 @@ func TestShortcodeRef(t *testing.T) { v := config.New() v.Set("baseURL", "https://example.org") - v.Set("blackfriday", map[string]interface{}{ + v.Set("blackfriday", map[string]any{ "plainIDAnchors": plainIDAnchors, }) - v.Set("markup", map[string]interface{}{ + v.Set("markup", map[string]any{ "defaultMarkdownHandler": "blackfriday", // TODO(bep) }) |