diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /markup/blackfriday | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) | |
download | hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'markup/blackfriday')
-rw-r--r-- | markup/blackfriday/blackfriday_config/config.go | 2 | ||||
-rw-r--r-- | markup/blackfriday/convert_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/markup/blackfriday/blackfriday_config/config.go b/markup/blackfriday/blackfriday_config/config.go index f26f7c570..668478ece 100644 --- a/markup/blackfriday/blackfriday_config/config.go +++ b/markup/blackfriday/blackfriday_config/config.go @@ -62,7 +62,7 @@ type Config struct { FootnoteReturnLinkContents string } -func UpdateConfig(b Config, m map[string]interface{}) (Config, error) { +func UpdateConfig(b Config, m map[string]any) (Config, error) { if err := mapstructure.Decode(m, &b); err != nil { return b, errors.WithMessage(err, "failed to decode rendering config") } diff --git a/markup/blackfriday/convert_test.go b/markup/blackfriday/convert_test.go index 5b1c1a71f..0d691f646 100644 --- a/markup/blackfriday/convert_test.go +++ b/markup/blackfriday/convert_test.go @@ -158,7 +158,7 @@ func TestGetHTMLRendererAnchors(t *testing.T) { c.Assert(err, qt.IsNil) conv, err := p.New(converter.DocumentContext{ DocumentID: "testid", - ConfigOverrides: map[string]interface{}{ + ConfigOverrides: map[string]any{ "plainIDAnchors": false, "footnotes": true, }, |