all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -42,8 +42,8 @@ func TestEmojify(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
expect interface{}
s any
expect any
}{
{":notamoji:", template.HTML(":notamoji:")},
{"I :heart: Hugo", template.HTML("I ❤️ Hugo")},
@@ -72,10 +72,10 @@ func TestHighlight(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
s any
lang string
opts interface{}
expect interface{}
opts any
expect any
}{
{"func boo() {}", "go", "", "boo"},
{"func boo() {}", "go", nil, "boo"},
@@ -117,8 +117,8 @@ func TestHTMLEscape(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
expect interface{}
s any
expect any
}{
{`"Foo & Bar's Diner" <y@z>`, `&#34;Foo &amp; Bar&#39;s Diner&#34; &lt;y@z&gt;`},
{"Hugo & Caddy > Wordpress & Apache", "Hugo &amp; Caddy &gt; Wordpress &amp; Apache"},
@@ -147,8 +147,8 @@ func TestHTMLUnescape(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
expect interface{}
s any
expect any
}{
{`&quot;Foo &amp; Bar&#39;s Diner&quot; &lt;y@z&gt;`, `"Foo & Bar's Diner" <y@z>`},
{"Hugo &amp; Caddy &gt; Wordpress &amp; Apache", "Hugo & Caddy > Wordpress & Apache"},
@@ -177,8 +177,8 @@ func TestMarkdownify(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
expect interface{}
s any
expect any
}{
{"Hello **World!**", template.HTML("Hello <strong>World!</strong>")},
{[]byte("Hello Bytes **World!**"), template.HTML("Hello Bytes <strong>World!</strong>")},
@@ -233,8 +233,8 @@ func TestPlainify(t *testing.T) {
ns := transform.New(b.H.Deps)
for _, test := range []struct {
s interface{}
expect interface{}
s any
expect any
}{
{"<em>Note:</em> blah <b>blah</b>", "Note: blah blah"},
// errors